diff options
author | Siri Hansen <[email protected]> | 2018-05-23 12:34:30 +0200 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2018-05-23 12:48:25 +0200 |
commit | 72f1ce276401e0b8de9c0c527cbc324da0186939 (patch) | |
tree | ee9213c25a48b2766b5659838ad2a1d1ab0f2cbf /lib/kernel/src/logger_std_h.erl | |
parent | 80606372f163ac26980010ee64464b2ace412100 (diff) | |
download | otp-72f1ce276401e0b8de9c0c527cbc324da0186939.tar.gz otp-72f1ce276401e0b8de9c0c527cbc324da0186939.tar.bz2 otp-72f1ce276401e0b8de9c0c527cbc324da0186939.zip |
Change type name logger:log() to logger:log_event()
Diffstat (limited to 'lib/kernel/src/logger_std_h.erl')
-rw-r--r-- | lib/kernel/src/logger_std_h.erl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/kernel/src/logger_std_h.erl b/lib/kernel/src/logger_std_h.erl index fc8ca1535b..63c3ab2dac 100644 --- a/lib/kernel/src/logger_std_h.erl +++ b/lib/kernel/src/logger_std_h.erl @@ -219,15 +219,15 @@ swap_buffer(Name,Buffer) -> %%%----------------------------------------------------------------- %%% Log a string or report --spec log(Log, Config) -> ok | dropped when - Log :: logger:log(), +-spec log(LogEvent, Config) -> ok | dropped when + LogEvent :: logger:log_event(), Config :: logger:config(). -log(Log,Config=#{id:=Name}) -> +log(LogEvent,Config=#{id:=Name}) -> %% if the handler has crashed, we must drop this request %% and hope the handler restarts so we can try again true = is_pid(whereis(Name)), - Bin = logger_h_common:log_to_binary(Log,Config), + Bin = logger_h_common:log_to_binary(LogEvent,Config), logger_h_common:call_cast_or_drop(Name, Bin). %%%=================================================================== |