aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/src/logger_olp.erl
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2018-12-11 12:03:28 +0100
committerSiri Hansen <[email protected]>2019-01-16 09:59:24 +0100
commit2c63eda781ccf12c2f35a94bc07b1b1013232483 (patch)
treefb9c8e961cd6d6ff9ba0a499b8c659fd62c41631 /lib/kernel/src/logger_olp.erl
parent9fdd7a279d01ec91bfa9b55a5d86f86e6c860226 (diff)
downloadotp-2c63eda781ccf12c2f35a94bc07b1b1013232483.tar.gz
otp-2c63eda781ccf12c2f35a94bc07b1b1013232483.tar.bz2
otp-2c63eda781ccf12c2f35a94bc07b1b1013232483.zip
[logger] Add logger_stress_SUITE
Diffstat (limited to 'lib/kernel/src/logger_olp.erl')
-rw-r--r--lib/kernel/src/logger_olp.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/kernel/src/logger_olp.erl b/lib/kernel/src/logger_olp.erl
index 7c6a1a8547..013cc6ce37 100644
--- a/lib/kernel/src/logger_olp.erl
+++ b/lib/kernel/src/logger_olp.erl
@@ -358,7 +358,7 @@ do_load(Msg, CallOrCast, State) ->
%% this function is called by do_load/3 after an overload check
%% has been performed, where QLen > FlushQLen
-flush(T1, State=#{id := _Name, mode := Mode, last_load_ts := T0, mode_ref := ModeRef}) ->
+flush(T1, State=#{id := _Name, mode := Mode, last_load_ts := _T0, mode_ref := ModeRef}) ->
%% flush load messages in the mailbox (a limited number in order
%% to not cause long delays)
NewFlushed = flush_load(?FLUSH_MAX_N),
@@ -375,7 +375,7 @@ flush(T1, State=#{id := _Name, mode := Mode, last_load_ts := T0, mode_ref := Mod
%% Add 1 for the current log event
?observe(_Name,{flushed,NewFlushed+1}),
- State2 = ?update_max_time(?diff_time(T1,T0),State1),
+ State2 = ?update_max_time(?diff_time(T1,_T0),State1),
State3 = ?update_max_qlen(QLen1,State2),
State4 = maybe_notify_mode_change(async,QLen1,State3),
{dropped,?update_other(flushed,FLUSHED,NewFlushed,