-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add config.logger.disableConsoleAfterReady #1001
Conversation
let app can change the logger config
Codecov Report
@@ Coverage Diff @@
## master #1001 +/- ##
=======================================
Coverage 98.96% 98.96%
=======================================
Files 28 28
Lines 675 675
=======================================
Hits 668 668
Misses 7 7
Continue to review full report at Codecov.
|
@@ -213,6 +214,7 @@ module.exports = appInfo => { | |||
env: appInfo.env, | |||
level: 'INFO', | |||
consoleLevel: 'INFO', | |||
disableConsoleAfterReady: appInfo.env !== 'local' && appInfo.env !== 'unittest', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
恩,就在 env 章节写从 app.config.env 获取好了。
logger 真是个复杂的东西。 |
@popomore @dead-horse 可以合并了? |
再重跑下 ci |
1) test/lib/plugins/development.test.js reload workers should reload when file changed:
AssertionError: should match stdout expected `/app_worker#2:\d+ started/(RegExp)` but actual `2017-06-09 05:21:20,641 INFO 3946 [master] egg version 1.4.0\n2017-06-09 05:21:21,139 INFO 3946 [master] agent_worker#1:3952 started (489ms)\n2017-06-09 05:21:21,870 INFO 3946 [master] egg started on http://127.0.0.1:17024 (1227ms)\n2017-06-09 05:21:22,123 WARN 3952 [agent:development] reload worker because /home/travis/build/eggjs/egg/test/fixtures/apps/reload-worker/app/controller/home.js change\n2017-06-09 05:21:22,807 INFO 3946 [master] app_worker#1:3962 disconnect, suicide: true, state: disconnected, current workers: ["2"]\n(String)`
+ expected - actual
-false
+true |
在这里解决 #1022 (comment) |
继续重跑 |
要发版本么 |
先不发,等需要发版本的时候带出去 |
let app can change the logger config
Checklist
npm test
passesAffected core subsystem(s)
Description of change