Skip to content
Snippets Groups Projects
Unverified Commit c8c99ded authored by David Beniamine's avatar David Beniamine
Browse files

Close after write to avoid bug on logrotate

parent 3f22ce78
No related branches found
No related tags found
No related merge requests found
......@@ -281,7 +281,8 @@ sub start_daemon(){
mkdir $LOGDIR;
$Logger = Log::Dispatch->new(
outputs => [
[ 'File', min_level => 'debug', filename => "$LOGDIR/main.log" ],
[ 'File', min_level => 'debug', filename => "$LOGDIR/main.log",
close_after_write => 1 ],
[ 'File', min_level => 'info', filename => "$LOGDIR/message.log" ],
[ 'Screen', min_level => 'debug', stderr => 0, newline =>0 ],
],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment