From 07da9786719a93a019288367438aa9131af8a8e0 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Fri, 21 Jan 2011 19:24:40 +0100 Subject: changed dict access to dot access --- src/nodejs/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/nodejs') diff --git a/src/nodejs/main.js b/src/nodejs/main.js index 7895cff..71667af 100644 --- a/src/nodejs/main.js +++ b/src/nodejs/main.js @@ -13,14 +13,14 @@ process.argv.forEach(function (val,index, array){ config = require(path); } }); -var connectionString = config['connectionString']; +var connectionString = config.connectionString; //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('global'); -log.setLevel(config['logLevel']); +log.setLevel(config.logLevel); log.info("server starting..."); -- cgit v1.2.3