1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00

fixing logging error

This commit is contained in:
Patrik J. Braun 2020-09-06 12:22:54 +02:00
parent 9cbcedea0a
commit ea29f51d10
2 changed files with 4 additions and 4 deletions

6
package-lock.json generated
View File

@ -18658,9 +18658,9 @@
}
},
"typeconfig": {
"version": "2.0.9",
"resolved": "https://registry.npmjs.org/typeconfig/-/typeconfig-2.0.9.tgz",
"integrity": "sha512-ORNNNaYqPpPzxMJLTTQ1okjtp120BPUmBFxFN6gE/a4KzmeT8VcBd7ptFxv+/FsnnOogzd4uGg5jaGF+SWG4hQ==",
"version": "2.0.10",
"resolved": "https://registry.npmjs.org/typeconfig/-/typeconfig-2.0.10.tgz",
"integrity": "sha512-Vdub3JophfvLdr53V62ODuiFr3NaigUQnzR/PIo9ZtVzO9bbjOZ64HqSZ3En3OMJapHU75FeShXWZco5hfiNbg==",
"requires": {
"optimist": "0.6.1"
}

View File

@ -7,7 +7,7 @@ const forcedDebug = process.env.NODE_ENV === 'debug';
export const winstonSettings = {
transports: [
new winston.transports.Console(<any>{
level: forcedDebug === true ? ServerConfig.LogLevel.silly : ServerConfig.LogLevel[Config.Server.Log.level],
level: forcedDebug === true ? ServerConfig.LogLevel[ServerConfig.LogLevel.silly] : ServerConfig.LogLevel[Config.Server.Log.level],
handleExceptions: true,
json: false,
colorize: true,