From 63a852da581bd58975f021ef1adda07312183881 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ale=C5=A1=20Smodi=C5=A1?= Date: Mon, 5 Oct 2015 17:50:23 +0200 Subject: Add logging to file to python server. Configure logfile paths from environment variables CODEQ_SERVER_LOG and CODEQ_WEB_LOG. --- web/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web') 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) { -- cgit v1.2.1