aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRaimo Niskanen <[email protected]>2014-06-30 17:22:13 +0200
committerRaimo Niskanen <[email protected]>2014-07-25 12:17:50 +0200
commit09451fa20a51ca198e6043505b033a9d24b497f6 (patch)
tree2cad76310ba6fa7ffbe3cfeba46246e845dbd9f7 /lib
parentdfb5cf6e2406486eeb7fbd89bf9118a6411bd5f2 (diff)
downloadotp-09451fa20a51ca198e6043505b033a9d24b497f6.tar.gz
otp-09451fa20a51ca198e6043505b033a9d24b497f6.tar.bz2
otp-09451fa20a51ca198e6043505b033a9d24b497f6.zip
Silence logging from agent net_if at shutdown
Diffstat (limited to 'lib')
-rw-r--r--lib/snmp/src/agent/snmpa_net_if.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/snmp/src/agent/snmpa_net_if.erl b/lib/snmp/src/agent/snmpa_net_if.erl
index f5fd377341..66964faed7 100644
--- a/lib/snmp/src/agent/snmpa_net_if.erl
+++ b/lib/snmp/src/agent/snmpa_net_if.erl
@@ -153,11 +153,12 @@ init(Prio, NoteStore, MasterAgent, Parent, Opts) ->
{ok, State} ->
proc_lib:init_ack({ok, self()}),
try loop(State)
- catch C:E ->
- S = erlang:get_stacktrace(),
+ catch
+ C:E when C =/= exit, E =/= shutdown ->
Fmt =
"loop/1 EXCEPTION ~w:~w~n"
" ~p",
+ S = erlang:get_stacktrace(),
case C of
exit ->
%% Externally killed, root cause is elsewhere