aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2018-09-07 16:49:30 +0200
committerSiri Hansen <[email protected]>2018-09-12 14:58:02 +0200
commita98ffe831d2a1cf44d0b7c53e2d72ade9d5a3dbb (patch)
treebf857510ca7784c21e908c2a6e2209dd939732e2
parenteb29e06488ded39e657db655e09f04e95568eb76 (diff)
downloadotp-a98ffe831d2a1cf44d0b7c53e2d72ade9d5a3dbb.tar.gz
otp-a98ffe831d2a1cf44d0b7c53e2d72ade9d5a3dbb.tar.bz2
otp-a98ffe831d2a1cf44d0b7c53e2d72ade9d5a3dbb.zip
[logger] Fix spec for handler callbacks to always return ok
-rw-r--r--lib/kernel/src/logger_disk_log_h.erl2
-rw-r--r--lib/kernel/src/logger_std_h.erl2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/kernel/src/logger_disk_log_h.erl b/lib/kernel/src/logger_disk_log_h.erl
index 3c12c9e68b..26375373aa 100644
--- a/lib/kernel/src/logger_disk_log_h.erl
+++ b/lib/kernel/src/logger_disk_log_h.erl
@@ -225,7 +225,7 @@ removing_handler(#{id:=Name}) ->
%%%-----------------------------------------------------------------
%%% Log a string or report
--spec log(LogEvent, Config) -> ok | dropped when
+-spec log(LogEvent, Config) -> ok when
LogEvent :: logger:log_event(),
Config :: logger:handler_config().
diff --git a/lib/kernel/src/logger_std_h.erl b/lib/kernel/src/logger_std_h.erl
index b60e7cf587..5dc4bc91ad 100644
--- a/lib/kernel/src/logger_std_h.erl
+++ b/lib/kernel/src/logger_std_h.erl
@@ -210,7 +210,7 @@ removing_handler(#{id:=Name}) ->
%%%-----------------------------------------------------------------
%%% Log a string or report
--spec log(LogEvent, Config) -> ok | dropped when
+-spec log(LogEvent, Config) -> ok when
LogEvent :: logger:log_event(),
Config :: logger:handler_config().