Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Dialyzed

  • Loading branch information...
commit d777bf3e145056f526b4f55a90eca25a2f7fa5c0 1 parent 9a88104
Fernando 'Brujo' Benavides authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/riak_err_handler.erl
View
5 src/riak_err_handler.erl
@@ -151,7 +151,10 @@ handle_event(Event, #state{errlog_type = ErrlogType, conslog_type = ConslogType,
end,
case should_log_it(ErrlogType, ErrorP, ReportStr) of
true when LogFH /= undefined ->
- file:write(LogFH, Formatted);
+ case file:write(LogFH, Formatted) of
+ ok -> ok;
+ {error, _Reason} -> io:format("Couldn't log: " ++ Formatted)
+ end;
_ ->
ok
end,
Please sign in to comment.
Something went wrong with that request. Please try again.