Skip to content

Commit

Permalink
fixed logger
Browse files Browse the repository at this point in the history
  • Loading branch information
cadorn committed Jan 6, 2012
1 parent 7e8a32b commit 62f33bc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/pinf-loader-js/loader.js
Expand Up @@ -405,7 +405,12 @@ var boot = exports.boot = function(options)

function run()
{
API.DEBUG.print(masthead);
if (typeof API.SYSTEM.setupLogger === "function")
{
API.SYSTEM.setupLogger();
}

API.DEBUG.print(masthead);

if (typeof API.ENV.ignoreGlobalPINF != "undefined" && API.ENV.ignoreGlobalPINF === true)
API.DEBUG.print("Ignore global PINF: YES");
Expand Down Expand Up @@ -809,17 +814,12 @@ var boot = exports.boot = function(options)
{
API.FILE.remove(cliOptions.pidfile);
});

if (cliOptions.daemonize) {

// NOTE: The process will call its own script and exit after this call.
API.SYSTEM.daemonize();

} else {
if (typeof API.SYSTEM.setupLogger === "function")
{
API.SYSTEM.setupLogger();
}
run();
}
}
Expand Down

0 comments on commit 62f33bc

Please sign in to comment.