From e1ec75b88dbb62ef6fabe9007a7d40ca70e3a7fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=9F=E9=85=8C=20=E9=B5=AC=E5=85=84?= Date: Fri, 12 Feb 2016 09:09:54 +0800 Subject: [PATCH] Production settings --- config/global.js | 2 +- config/log.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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+" } + ) };