Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/inaka/riak_err
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando "Brujo" Benavides committed Dec 22, 2011
2 parents 5dc308a + d777bf3 commit 805c2c7
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,
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,
Expand Down

0 comments on commit 805c2c7

Please sign in to comment.