mirror of
https://github.com/yuzu-emu/Command-fix.git
synced 2024-11-22 15:25:46 +01:00
Check if logdnaKey is defined before attempting to use it.
This commit is contained in:
parent
49755a4182
commit
6f48e1c379
@ -19,7 +19,7 @@ var logger = new winston.Logger({
|
|||||||
exitOnError: false
|
exitOnError: false
|
||||||
});
|
});
|
||||||
|
|
||||||
if (process.env.NODE_ENV == 'production') {
|
if (process.env.NODE_ENV == 'production' && config.logdnaKey) {
|
||||||
// Setup logging for LogDNA cloud logging.
|
// Setup logging for LogDNA cloud logging.
|
||||||
logger.add(winston.transports.Logdna, {
|
logger.add(winston.transports.Logdna, {
|
||||||
level: 'info',
|
level: 'info',
|
||||||
|
Loading…
Reference in New Issue
Block a user