Browse Source

Fix: debug key

Sotaro KARASAWA 9 years ago
parent
commit
04c51edd16
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/crowi/express-init.js

+ 1 - 1
lib/crowi/express-init.js

@@ -30,7 +30,7 @@ module.exports = function(crowi, app) {
     .use(i18nFsBackend)
     .use(i18nSprintf)
     .init({
-      debug: true,
+      debug: (crowi.node_env === 'development'),
       fallbackLng: [User.LANG_EN_US],
       whitelist: Object.keys(User.getLanguageLabels()).map((k) => User[k]),
       backend: {