mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Logging improvements
This commit is contained in:
parent
ebe66beab2
commit
0784630d38
2 changed files with 2 additions and 2 deletions
|
@ -262,7 +262,7 @@ function GetApp(): ModuleType {
|
||||||
// -------------------------------------------------------------
|
// -------------------------------------------------------------
|
||||||
|
|
||||||
app.get('/getDbs', (req: Request, res: any) => {
|
app.get('/getDbs', (req: Request, res: any) => {
|
||||||
// logger.LogReq(req)
|
logger.LogReq(req)
|
||||||
res.json(
|
res.json(
|
||||||
questionDbs.map((qdb) => {
|
questionDbs.map((qdb) => {
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -160,7 +160,7 @@ const excludeFromStats = utils.ReadJSON(statExcludeFile)
|
||||||
|
|
||||||
app.use(
|
app.use(
|
||||||
reqlogger({
|
reqlogger({
|
||||||
loggableKeywords: [],
|
loggableKeywords: ['news.json'],
|
||||||
loggableModules: [],
|
loggableModules: [],
|
||||||
exceptions: ['_next/static'],
|
exceptions: ['_next/static'],
|
||||||
excludeFromStats: excludeFromStats,
|
excludeFromStats: excludeFromStats,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue