OSDN Git Service

Plugin::AccessLog::LocalFile: fix autoflush parameter's bug
authorhylom <hylom@users.sourceforge.jp>
Thu, 23 Mar 2017 11:22:34 +0000 (20:22 +0900)
committerhylom <hylom@users.sourceforge.jp>
Thu, 23 Mar 2017 11:22:34 +0000 (20:22 +0900)
src/newslash_web/lib/Newslash/Plugin/AccessLog/LocalFile.pm

index 823a38c..8aefd6e 100644 (file)
@@ -26,7 +26,7 @@ sub register {
         $app->log->error("cannot open access log file: $log_dest");
         die "cannot open access log file: $log_dest";
     }
-    if (!defined $conf->{autoflush} || !$conf->{autoflush}) {
+    if (!defined $conf->{autoflush} || $conf->{autoflush}) {
         $self->{fh}->autoflush;
     }