Skip to content

Commit

Permalink
Merge pull request webmachine#197 from cobusc/develop
Browse files Browse the repository at this point in the history
Fix logger deadlock situation when log file is rotated

Reviewed-by: seancribbs
  • Loading branch information
borshop committed Jul 7, 2014
2 parents 4fe8a9a + 6f676e6 commit 879911a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webmachine_log.erl
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ log_access(#wm_log_data{}=LogData) ->
%% @doc Close a log file.
-spec log_close(atom(), string(), file:io_device()) -> ok | {error, term()}.
log_close(Mod, Name, FD) ->
log_info([atom_to_list(Mod), ": closing log file: ", Name, $\n]),
error_logger:info_msg("~p: closing log file: ~s~n", [Mod, Name]),
file:close(FD).

%% @doc Notify registered log event handler of an error event.
Expand Down

0 comments on commit 879911a

Please sign in to comment.