aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/src/logger_h_common.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_h_common.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_h_common.erl')
-rw-r--r--lib/kernel/src/logger_h_common.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/kernel/src/logger_h_common.erl b/lib/kernel/src/logger_h_common.erl
index 6f55c5997d..51fe8f3157 100644
--- a/lib/kernel/src/logger_h_common.erl
+++ b/lib/kernel/src/logger_h_common.erl
@@ -223,6 +223,8 @@ start(OlpOpts0, #{id := Name, module:=Module, config:=HConfig} = Config0) ->
init(#{id := Name, module := Module, config := HConfig}) ->
process_flag(trap_exit, true),
+ ?init_test_hooks(),
+
case Module:init(Name, HConfig) of
{ok,HState} ->
%% Storing common config in state to avoid copying