aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/src/logger_olp.erl
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2018-12-21 12:35:39 +0100
committerSiri Hansen <[email protected]>2019-01-16 09:59:24 +0100
commit06b9756aceb200c359015a088f86e8afc097dc97 (patch)
treed23e63c028eba91ff04bc274fd1ee3aa0fdb23b1 /lib/kernel/src/logger_olp.erl
parent4ec6d337da40599b5153c7878d329ca1045b6a35 (diff)
downloadotp-06b9756aceb200c359015a088f86e8afc097dc97.tar.gz
otp-06b9756aceb200c359015a088f86e8afc097dc97.tar.bz2
otp-06b9756aceb200c359015a088f86e8afc097dc97.zip
[logger] Move out overload protection macros from logger_h_common.hrl
The new file logger_olp.hrl is added.
Diffstat (limited to 'lib/kernel/src/logger_olp.erl')
-rw-r--r--lib/kernel/src/logger_olp.erl5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/kernel/src/logger_olp.erl b/lib/kernel/src/logger_olp.erl
index 0f9314b4a3..009280a9c9 100644
--- a/lib/kernel/src/logger_olp.erl
+++ b/lib/kernel/src/logger_olp.erl
@@ -20,7 +20,7 @@
-module(logger_olp).
-behaviour(gen_server).
--include("logger_h_common.hrl").
+-include("logger_olp.hrl").
-include("logger_internal.hrl").
%% API
@@ -172,7 +172,6 @@ init([Name,Module,Args,Options]) ->
register(Name, self()),
process_flag(message_queue_data, off_heap),
- ?init_test_hooks(),
?start_observation(Name),
try ets:new(Name, [public]) of
@@ -324,7 +323,7 @@ call({_Name, Pid, _ModeRef},Msg) ->
call(Pid, Msg);
call(Server, Msg) ->
try
- gen_server:call(Server, Msg, ?DEFAULT_CALL_TIMEOUT)
+ gen_server:call(Server, Msg)
catch
_:{timeout,_} -> {error,busy}
end.