diff --git a/src/lager_crash_log.erl b/src/lager_crash_log.erl index b88d677..77bf56e 100644 --- a/src/lager_crash_log.erl +++ b/src/lager_crash_log.erl @@ -97,7 +97,7 @@ handle_cast({log, Event}, #state{name=Name, fd=FD, inode=Inode, flap=Flap, fmtma true -> {noreply, State}; _ -> - ?INT_LOG(error, "Failed to reopen logfile ~s with error ~w", [Name, file:format_info(Reason)]), + ?INT_LOG(error, "Failed to reopen logfile ~s with error ~w", [Name, file:format_error(Reason)]), {noreply, State#state{flap=true}} end end