mirror of
https://github.com/bpatrik/pigallery2.git
synced 2024-11-24 08:42:24 +02:00
adding more logging
This commit is contained in:
parent
ea29f51d10
commit
b9f5aed01c
6
package-lock.json
generated
6
package-lock.json
generated
@ -18658,9 +18658,9 @@
|
||||
}
|
||||
},
|
||||
"typeconfig": {
|
||||
"version": "2.0.10",
|
||||
"resolved": "https://registry.npmjs.org/typeconfig/-/typeconfig-2.0.10.tgz",
|
||||
"integrity": "sha512-Vdub3JophfvLdr53V62ODuiFr3NaigUQnzR/PIo9ZtVzO9bbjOZ64HqSZ3En3OMJapHU75FeShXWZco5hfiNbg==",
|
||||
"version": "2.0.12",
|
||||
"resolved": "https://registry.npmjs.org/typeconfig/-/typeconfig-2.0.12.tgz",
|
||||
"integrity": "sha512-obw0lBawCfLzyNkeAOAKmyQTXlxJ2ddZUQ4MR6bggbs8ZnbYKy5DPfx1SE0C+gbZ1svg9jK173RXOoD/wkQcYg==",
|
||||
"requires": {
|
||||
"optimist": "0.6.1"
|
||||
}
|
||||
|
@ -48,7 +48,7 @@
|
||||
"sqlite3": "4.1.1",
|
||||
"ts-exif-parser": "0.2.1",
|
||||
"ts-node-iptc": "1.0.11",
|
||||
"typeconfig": "2.0.10",
|
||||
"typeconfig": "2.0.12",
|
||||
"typeorm": "0.2.21",
|
||||
"winston": "2.4.4"
|
||||
},
|
||||
|
@ -4,6 +4,9 @@ import {ServerConfig} from '../common/config/private/PrivateConfig';
|
||||
|
||||
const forcedDebug = process.env.NODE_ENV === 'debug';
|
||||
|
||||
if (forcedDebug === true) {
|
||||
console.log('NODE_ENV environmental variable is set to debug, forcing all logs to print');
|
||||
}
|
||||
export const winstonSettings = {
|
||||
transports: [
|
||||
new winston.transports.Console(<any>{
|
||||
|
Loading…
Reference in New Issue
Block a user