From 38ef70863202157b786294332ee5004e1547a19b Mon Sep 17 00:00:00 2001 From: Darren Date: Tue, 26 Mar 2013 12:09:26 +0000 Subject: [PATCH] Extra config checks on config.log overloading --- server/kiwi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/kiwi.js b/server/kiwi.js index a464a35..014cac0 100755 --- a/server/kiwi.js +++ b/server/kiwi.js @@ -14,7 +14,7 @@ config.loadConfig(); // If we're not running in the forground and we have a log file.. switch // console.log to output to a file -if (process.argv.indexOf('-f') === -1 && global.config.log) { +if (process.argv.indexOf('-f') === -1 && global.config && global.config.log) { (function () { var log_file_name = global.config.log; -- 2.25.1