Log when original version of intercepted function fails

This commit is contained in:
Jason Voegele 2015-08-26 09:21:30 -04:00
parent 8641f6edc6
commit b71e582dc0

View File

@ -57,6 +57,7 @@ intercept_riak_snmp_stat_poller(Node) ->
RiakTestProcess ! pass RiakTestProcess ! pass
catch catch
Exception:Reason -> Exception:Reason ->
lager:error("Failure in riak_snmp_stat_poller_orig:set_rows_orig: ~p~n", [{Exception, Reason}]),
RiakTestProcess ! {fail, {Exception, Reason}}, RiakTestProcess ! {fail, {Exception, Reason}},
error({Exception, Reason}) error({Exception, Reason})
end end