1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2024-11-24 08:42:24 +02: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": { "typeconfig": {
"version": "2.0.9", "version": "2.0.10",
"resolved": "https://registry.npmjs.org/typeconfig/-/typeconfig-2.0.9.tgz", "resolved": "https://registry.npmjs.org/typeconfig/-/typeconfig-2.0.10.tgz",
"integrity": "sha512-ORNNNaYqPpPzxMJLTTQ1okjtp120BPUmBFxFN6gE/a4KzmeT8VcBd7ptFxv+/FsnnOogzd4uGg5jaGF+SWG4hQ==", "integrity": "sha512-Vdub3JophfvLdr53V62ODuiFr3NaigUQnzR/PIo9ZtVzO9bbjOZ64HqSZ3En3OMJapHU75FeShXWZco5hfiNbg==",
"requires": { "requires": {
"optimist": "0.6.1" "optimist": "0.6.1"
} }

View File

@ -7,7 +7,7 @@ const forcedDebug = process.env.NODE_ENV === 'debug';
export const winstonSettings = { export const winstonSettings = {
transports: [ transports: [
new winston.transports.Console(<any>{ 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, handleExceptions: true,
json: false, json: false,
colorize: true, colorize: true,