mirror of
https://github.com/yuzu-emu/Command-fix.git
synced 2024-11-22 09:35:37 +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
|
||||
});
|
||||
|
||||
if (process.env.NODE_ENV == 'production') {
|
||||
if (process.env.NODE_ENV == 'production' && config.logdnaKey) {
|
||||
// Setup logging for LogDNA cloud logging.
|
||||
logger.add(winston.transports.Logdna, {
|
||||
level: 'info',
|
||||
|
Loading…
Reference in New Issue
Block a user