diff options
author | Aleš Smodiš <aless@guru.si> | 2015-10-05 17:50:23 +0200 |
---|---|---|
committer | Aleš Smodiš <aless@guru.si> | 2015-10-05 17:50:23 +0200 |
commit | 63a852da581bd58975f021ef1adda07312183881 (patch) | |
tree | 22f9d8c3e192ed93b7952f3e30c0f88894498f6d /web | |
parent | 0818b6655e8fd5ce14febd47470ac0445e3665f1 (diff) |
Add logging to file to python server. Configure logfile paths from environment variables CODEQ_SERVER_LOG and CODEQ_WEB_LOG.
Diffstat (limited to 'web')
-rw-r--r-- | web/main.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/main.js b/web/main.js index 16b318d..2446010 100644 --- a/web/main.js +++ b/web/main.js @@ -5,7 +5,7 @@ var engine = require('engine.io'), log4js = require('log4js'); log4js.loadAppender('file'); -log4js.addAppender(log4js.appenders.file('web.log'), 'log'); +log4js.addAppender(log4js.appenders.file(process.env.CODEQ_WEB_LOG || 'codeq-web.log'), 'log'); var logger = log4js.getLogger('log'); var logException = function (msg, error) { |