From 69b18c7f0e9c83157abfa776b0d471e7eaba08f0 Mon Sep 17 00:00:00 2001 From: Adhidarma Hadiwinoto <me@adhisimon.org> Date: Wed, 6 Nov 2019 14:39:42 +0700 Subject: [PATCH] Debug production --- lib/webservice/router/priceplan.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/webservice/router/priceplan.js b/lib/webservice/router/priceplan.js index e6eaee3..6c14437 100644 --- a/lib/webservice/router/priceplan.js +++ b/lib/webservice/router/priceplan.js @@ -3,7 +3,8 @@ const bodyParser = require('body-parser'); const logger = require('komodo-sdk/logger'); const dbKomodo = require('../../db-komodo'); -const DEBUG = process.NODE_ENV !== 'production'; +const DEBUG = process.env.NODE_ENV !== 'production'; +logger.info(`PRODUCTION MODE: ${!DEBUG}`); const router = express.Router(); module.exports = router; -- 1.9.0