diff --git a/config/global.js b/config/global.js index f85d6dc..d12fbb7 100644 --- a/config/global.js +++ b/config/global.js @@ -1 +1 @@ -global.debug = true; +global.debug = false; diff --git a/config/log.js b/config/log.js index 2e39811..e584e3e 100644 --- a/config/log.js +++ b/config/log.js @@ -2,5 +2,7 @@ var fs = require( "fs" ); var path = "logs/access.log"; module.exports = { - handler: { write: function( e ) { process.stdout.write( e ); } } + handler: fs.createWriteStream( + path, { flag: "w+" } + ) };