mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-19 20:28:53 +00:00
chore(logging): don't log in production
This commit is contained in:
parent
2d4d103ca6
commit
85e2ce5c4a
1 changed files with 2 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue