Logging improvements

This commit is contained in:
mrfry 2021-02-26 16:20:29 +01:00
parent ebe66beab2
commit 0784630d38
2 changed files with 2 additions and 2 deletions

View file

@ -262,7 +262,7 @@ function GetApp(): ModuleType {
// -------------------------------------------------------------
app.get('/getDbs', (req: Request, res: any) => {
// logger.LogReq(req)
logger.LogReq(req)
res.json(
questionDbs.map((qdb) => {
return {

View file

@ -160,7 +160,7 @@ const excludeFromStats = utils.ReadJSON(statExcludeFile)
app.use(
reqlogger({
loggableKeywords: [],
loggableKeywords: ['news.json'],
loggableModules: [],
exceptions: ['_next/static'],
excludeFromStats: excludeFromStats,