From 0d6a9fdae5fe86971ce1fa4876995da8fdf83171 Mon Sep 17 00:00:00 2001 From: Tankred Hase Date: Wed, 23 Aug 2017 18:31:15 +0800 Subject: [PATCH] Use log level env var instead of environment config --- .travis.yml | 2 +- config/integration.js | 4 ---- config/production.js | 4 ---- 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index ef916cd..4f8b4c9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,7 @@ node_js: - "8" env: - - NODE_ENV=integration MONGO_URI=127.0.0.1:27017/test_db MONGO_USER=travis MONGO_PASS=test + - NODE_ENV=integration LOG_LEVEL=warn MONGO_URI=127.0.0.1:27017/test_db MONGO_USER=travis MONGO_PASS=test notifications: email: diff --git a/config/integration.js b/config/integration.js index 96e3d8d..0e903a8 100644 --- a/config/integration.js +++ b/config/integration.js @@ -2,8 +2,4 @@ module.exports = { - log: { - level: 'warn' - } - }; diff --git a/config/production.js b/config/production.js index 4c258ce..0e903a8 100644 --- a/config/production.js +++ b/config/production.js @@ -2,8 +2,4 @@ module.exports = { - log: { - level: 'error' - } - };