diff options
author | Siri Hansen <[email protected]> | 2018-04-25 15:48:09 +0200 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2018-04-26 14:37:31 +0200 |
commit | c54be0299219c32e5b66df952cf6d260ef2dadfa (patch) | |
tree | ffbe83b90bdb50fd62bf5333de98a880380a50c4 /lib/kernel/src/logger_internal.hrl | |
parent | 8fdb08867df346625fab13c596dad05ed37ae5ac (diff) | |
download | otp-c54be0299219c32e5b66df952cf6d260ef2dadfa.tar.gz otp-c54be0299219c32e5b66df952cf6d260ef2dadfa.tar.bz2 otp-c54be0299219c32e5b66df952cf6d260ef2dadfa.zip |
Set call timeout for logger_server to infinity
This is to avoid failing starts when running make with '-j',
i.e. maximum parallell make (or on extremely slow machines).
Diffstat (limited to 'lib/kernel/src/logger_internal.hrl')
-rw-r--r-- | lib/kernel/src/logger_internal.hrl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/kernel/src/logger_internal.hrl b/lib/kernel/src/logger_internal.hrl index 8fcaba8de6..82df499c2b 100644 --- a/lib/kernel/src/logger_internal.hrl +++ b/lib/kernel/src/logger_internal.hrl @@ -23,7 +23,6 @@ -define(HANDLER_KEY,'$handler_config$'). -define(LOGGER_META_KEY,'$logger_metadata$'). -define(STANDARD_HANDLER, logger_std_h). --define(DEFAULT_LOGGER_CALL_TIMEOUT, 10000). -define(DEFAULT_HANDLER_FILTERS, ?DEFAULT_HANDLER_FILTERS([beam,erlang,otp])). -define(DEFAULT_HANDLER_FILTERS(Domain), @@ -40,9 +39,12 @@ -define(DEFAULT_FORMAT_TEMPLATE, [time," ",level,":\n",msg,"\n"]). +-define(DEFAULT_LOGGER_CALL_TIMEOUT, infinity). + -define(LOG_INTERNAL(Level,Report), case logger:allow(Level,?MODULE) of true -> + %% Spawn this to avoid deadlocks _ = spawn(logger,macro_log,[?LOCATION,Level,Report, logger:add_default_metadata(#{})]), ok; |