summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpierreozoux <pierre@ozoux.net>2017-11-23 10:07:49 +0100
committerpierreozoux <pierre@ozoux.net>2017-11-23 10:21:03 +0100
commitebff813f99f0dc7463b482d4ad16a21dad87d139 (patch)
treee3d038240a14ac445eb456d6510edbba012377a0
parentb03c9b987959d35324295c7cb49b5c6904ebda43 (diff)
downloadwekan-ebff813f99f0dc7463b482d4ad16a21dad87d139.tar.gz
wekan-ebff813f99f0dc7463b482d4ad16a21dad87d139.tar.bz2
wekan-ebff813f99f0dc7463b482d4ad16a21dad87d139.zip
Try to fix build
-rw-r--r--server/logger.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/server/logger.js b/server/logger.js
index 6d7be96d..de223951 100644
--- a/server/logger.js
+++ b/server/logger.js
@@ -10,12 +10,7 @@ Meteor.startup(() => {
if (loggerEnable) {
Winston.log('info', 'logger is enable');
- if (process.env.LOGGERS) {
- const loggers = process.env.LOGGERS.split(',') || 'console';
- Winston.log('info', `Loggers selected : ${ process.env.LOGGERS }, if empty default is console`);
- } else {
- const loggers = 'console';
- }
+ const loggers = process.env.LOGGERS ? process.env.LOGGERS.split(',') : 'console'
if (loggers.includes('console')) {
Winston.add(Winston.transports.Console, {