diff options
author | Lukas Larsson <[email protected]> | 2018-06-04 17:40:31 +0200 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2018-06-04 17:40:31 +0200 |
commit | cfd29269fa1bbcf16ef38273e6f0c91d727f8c06 (patch) | |
tree | a333a80c26c4c3ad9442708c816d6b515c41abe7 /lib/kernel/src/logger_server.erl | |
parent | 4e9f0492fd46d1ba6d919883cbdd5caaff8a949b (diff) | |
download | otp-cfd29269fa1bbcf16ef38273e6f0c91d727f8c06.tar.gz otp-cfd29269fa1bbcf16ef38273e6f0c91d727f8c06.tar.bz2 otp-cfd29269fa1bbcf16ef38273e6f0c91d727f8c06.zip |
kernel: Add LOGGER_SERVER_TAG to logger_server
This makes recursive calls to not dead-lock logger_server.
Diffstat (limited to 'lib/kernel/src/logger_server.erl')
-rw-r--r-- | lib/kernel/src/logger_server.erl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/kernel/src/logger_server.erl b/lib/kernel/src/logger_server.erl index 275b9c476f..c67b3820a8 100644 --- a/lib/kernel/src/logger_server.erl +++ b/lib/kernel/src/logger_server.erl @@ -117,6 +117,7 @@ update_config(Owner, Config) -> init([]) -> process_flag(trap_exit, true), + put(?LOGGER_SERVER_TAG,true), Tid = logger_config:new(?LOGGER_TABLE), LoggerConfig = maps:merge(default_config(logger), #{handlers=>[logger_simple]}), |