Skip to content

Commit

Permalink
Dialyzed
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando 'Brujo' Benavides committed Sep 26, 2011
1 parent 9a88104 commit d777bf3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/riak_err_handler.erl
Expand Up @@ -151,7 +151,10 @@ handle_event(Event, #state{errlog_type = ErrlogType, conslog_type = ConslogType,
end, end,
case should_log_it(ErrlogType, ErrorP, ReportStr) of case should_log_it(ErrlogType, ErrorP, ReportStr) of
true when LogFH /= undefined -> 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 ok
end, end,
Expand Down

0 comments on commit d777bf3

Please sign in to comment.