diff options
author | Siri Hansen <[email protected]> | 2018-05-14 17:01:15 +0200 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2018-05-21 17:43:53 +0200 |
commit | 033bcc2296d7d79c53d56798ab0ccf232f451574 (patch) | |
tree | 1737c8c27710aa3ea73844140a498f040ffa25c6 /lib/et/vsn.mk | |
parent | ee9e7de41ec6b14857a2e32099cf76b425c3b778 (diff) | |
download | otp-033bcc2296d7d79c53d56798ab0ccf232f451574.tar.gz otp-033bcc2296d7d79c53d56798ab0ccf232f451574.tar.bz2 otp-033bcc2296d7d79c53d56798ab0ccf232f451574.zip |
Fix error_logger:tty/1 to turn on/off tty logging
This function earlier only added/removed the old error_logger_tty_h
report handler. Since it is mostly used for turning off logging to tty
in general, it now also checks the default logger handlers. It works
as follows:
tty(true):
* If default handler is logger_std_h of type standard_io, make sure it
has no 'error_logger_tty_false filter'.
* Else, add a new instance of logger_std_h with type standard_io with
id 'error_logger_tty_true'.
tty(false):
* Remove error_logger_tty_h report handler if it exists.
* Remove error_logger_tty_false logger handler if it exists.
* If default handler is logger_std_h of type standard_io, add a filter
named 'error_logger_tty_false', which stops all events.
Diffstat (limited to 'lib/et/vsn.mk')
0 files changed, 0 insertions, 0 deletions