aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/src/logger_std_h.erl
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2018-08-14 11:43:18 +0200
committerSiri Hansen <[email protected]>2018-09-12 14:58:02 +0200
commitb6289e914c67bd786da829503b144c039303bfd3 (patch)
tree3c31594ce01e8167a4f5c297f987fc4aa0639f54 /lib/kernel/src/logger_std_h.erl
parent6d665a8296999822e4d516343d0e21ed62e70b37 (diff)
downloadotp-b6289e914c67bd786da829503b144c039303bfd3.tar.gz
otp-b6289e914c67bd786da829503b144c039303bfd3.tar.bz2
otp-b6289e914c67bd786da829503b144c039303bfd3.zip
[logger] Refactor some logger internals
Diffstat (limited to 'lib/kernel/src/logger_std_h.erl')
-rw-r--r--lib/kernel/src/logger_std_h.erl5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/kernel/src/logger_std_h.erl b/lib/kernel/src/logger_std_h.erl
index 9a2a1443b3..b60e7cf587 100644
--- a/lib/kernel/src/logger_std_h.erl
+++ b/lib/kernel/src/logger_std_h.erl
@@ -259,7 +259,7 @@ init([Name, Config = #{config := HConfig},
mode_tab => ModeTab}},
proc_lib:init_ack({ok,self(),Config1}),
gen_server:cast(self(), repeated_filesync),
- enter_loop(Config1, State1)
+ gen_server:enter_loop(?MODULE, [], State1)
catch
_:Error ->
unregister(RegName),
@@ -290,9 +290,6 @@ do_init(Name, Type) ->
Error
end.
-enter_loop(_Config,State) ->
- gen_server:enter_loop(?MODULE,[],State).
-
%% This is the synchronous log event.
handle_call({log, Bin}, _From, State) ->
{Result,State1} = do_log(Bin, call, State),