Skip to content
This repository has been archived by the owner on Feb 17, 2018. It is now read-only.

Commit

Permalink
set logger to conf logger
Browse files Browse the repository at this point in the history
  • Loading branch information
riedel committed Dec 26, 2011
1 parent 244a3ff commit be84a4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/cfg.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ var fs = require('fs'),

// external libraries
var func = require('./func.js');

var log=null;
var settings = {
"proxy":
{
Expand Down Expand Up @@ -146,7 +146,7 @@ function load() {
if(settings.log) {
Logger.merge_options(settings.log);
}
var log = new Logger('cfg');
log = new Logger('cfg');
log.info('configuration options merged');
}
}
Expand Down
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ var fs = require('fs'),

// internal libraries
var cfg = require('./lib/cfg.js'),
log = new (require('./lib/log.js').Logger)('core'),
log = cfg.log,
func = require('./lib/func.js'),
ProxyRequest = require('./lib/proxy.js').ProxyRequest;

Expand Down

0 comments on commit be84a4d

Please sign in to comment.