Production settings

This commit is contained in:
斟酌 鵬兄 2016-02-12 09:09:54 +08:00
parent 1f83141f1c
commit e1ec75b88d
2 changed files with 4 additions and 2 deletions

View File

@ -1 +1 @@
global.debug = true; global.debug = false;

View File

@ -2,5 +2,7 @@ var fs = require( "fs" );
var path = "logs/access.log"; var path = "logs/access.log";
module.exports = { module.exports = {
handler: { write: function( e ) { process.stdout.write( e ); } } handler: fs.createWriteStream(
path, { flag: "w+" }
)
}; };