diff options
author | Siri Hansen <[email protected]> | 2018-06-07 16:23:19 +0200 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2018-06-11 15:01:41 +0200 |
commit | c026109009942d7a877242f161860cc824223cf1 (patch) | |
tree | 44cae2092634830ecaab5732aacd7c142c8ebc6e /lib/kernel/src/application_controller.erl | |
parent | b91eceaf71e0009346d119346a33894ed53be7b0 (diff) | |
download | otp-c026109009942d7a877242f161860cc824223cf1.tar.gz otp-c026109009942d7a877242f161860cc824223cf1.tar.bz2 otp-c026109009942d7a877242f161860cc824223cf1.zip |
[logger] Change default primary log level to 'notice'
Log events issued via error_logger:info_msg or
error_logger:info_report are now forwarded to Logger with level
'notice' instead of 'info'.
Log events issued by gen_* behaviours are also changed from level
'info' to level 'notice'.
Progress reports are still 'info', and can therefore easily be
included/excluded by changing the primary log level. By default, they
are not logged.
Diffstat (limited to 'lib/kernel/src/application_controller.erl')
-rw-r--r-- | lib/kernel/src/application_controller.erl | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/kernel/src/application_controller.erl b/lib/kernel/src/application_controller.erl index d5a632ef6f..36479f4be6 100644 --- a/lib/kernel/src/application_controller.erl +++ b/lib/kernel/src/application_controller.erl @@ -1920,13 +1920,13 @@ info_started(Name, Node) -> error_logger=>#{tag=>info_report,type=>progress}}). info_exited(Name, Reason, Type) -> - ?LOG_INFO(#{label=>{application_controller,exit}, - report=>[{application, Name}, - {exited, Reason}, - {type, Type}]}, - #{domain=>[otp], - report_cb=>fun logger:format_otp_report/1, - error_logger=>#{tag=>info_report,type=>std_info}}). + ?LOG_NOTICE(#{label=>{application_controller,exit}, + report=>[{application, Name}, + {exited, Reason}, + {type, Type}]}, + #{domain=>[otp], + report_cb=>fun logger:format_otp_report/1, + error_logger=>#{tag=>info_report,type=>std_info}}). %%----------------------------------------------------------------- %% Reply to all processes waiting this application to be started. |