mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2026-04-28 11:17:38 +02:00
Logging improvements
This commit is contained in:
+2
-2
@@ -40,7 +40,7 @@ import utils from './utils/utils'
|
||||
import dbtools from './utils/dbtools'
|
||||
import reqlogger from './middlewares/reqlogger.middleware'
|
||||
import idStats from './utils/ids'
|
||||
const extraModulesFile = './extraModules/extraModules.json'
|
||||
const extraModulesFile = '.src/extraModules/extraModules.json'
|
||||
const statExcludeFile = './data/statExclude.json'
|
||||
const modulesFile = './src/modules.json'
|
||||
const usersDBPath = './data/dbs/users.db'
|
||||
@@ -160,7 +160,7 @@ const excludeFromStats = utils.ReadJSON(statExcludeFile)
|
||||
|
||||
app.use(
|
||||
reqlogger({
|
||||
loggableKeywords: ['news.json'],
|
||||
loggableKeywords: [],
|
||||
loggableModules: [],
|
||||
exceptions: ['_next/static'],
|
||||
excludeFromStats: excludeFromStats,
|
||||
|
||||
Reference in New Issue
Block a user