aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/nodejs/config.json1
-rw-r--r--src/nodejs/xmlGenerator.js4
2 files changed, 4 insertions, 1 deletions
diff --git a/src/nodejs/config.json b/src/nodejs/config.json
index 9c18203..be796a7 100644
--- a/src/nodejs/config.json
+++ b/src/nodejs/config.json
@@ -1,3 +1,4 @@
exports.connectionString = "pg://user:password@host/database";
exports.host = 'localhost';
exports.port = 8080;
+exports.logLevel = 'ERROR';
diff --git a/src/nodejs/xmlGenerator.js b/src/nodejs/xmlGenerator.js
index e982e18..97cd2ae 100644
--- a/src/nodejs/xmlGenerator.js
+++ b/src/nodejs/xmlGenerator.js
@@ -1,10 +1,12 @@
+var config = require('./config.json');
+
var builder = require('xmlbuilder');
//set up logger
var log4js = require('log4js')(); //note the need to call the function
//log4js.addAppender(log4js.fileAppender('osm-xapi.log'), 'cheese');
var log = log4js.getLogger('xmlGenerator');
-log.setLevel('ALL');
+log.setLevel(config.logLevel);
exports.createNode = function (row) {