Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

rotate log file regardless of copy_errlog parameter

Signed-off-by: Garret Smith <garret.smith@gmail.com>
  • Loading branch information...
commit 2411b2f894506b8cb1247aa6e8f629b594b8a52f 1 parent 317008a
@garret-smith garret-smith authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  src/yaws_log.erl
View
3  src/yaws_log.erl
@@ -351,8 +351,7 @@ handle_info(minute10, State) ->
case gen_event:call(error_logger, yaws_log_file_h, size, infinity) of
{ok, Size} when State#state.log_wrap_size > 0,
- Size > State#state.log_wrap_size,
- State#state.copy_errlog == true ->
+ Size > State#state.log_wrap_size ->
gen_event:call(error_logger, yaws_log_file_h, wrap, infinity);
{error, enoent} ->
gen_event:call(error_logger, yaws_log_file_h, reopen, infinity);
Please sign in to comment.
Something went wrong with that request. Please try again.