chore(logging): don't log in production
This commit is contained in:
+2
-1
@@ -76,7 +76,8 @@ passport.use(new FacebookStrategy({
|
||||
// ------------ Server Configuration ------------
|
||||
app.set("port", nconf.get('PORT'));
|
||||
|
||||
if (!process.env.SUPPRESS) app.use(express.logger("dev"));
|
||||
if (nconf.get('NODE_ENV') !== 'production')
|
||||
app.use(express.logger("dev"));
|
||||
app.use(express.compress());
|
||||
app.set("views", __dirname + "/../views");
|
||||
app.set("view engine", "jade");
|
||||
|
||||
Reference in New Issue
Block a user