Turn autoflush off via undef instead of 0 for consistency
Henry Van Styn [Mon, 12 May 2014 20:19:06 +0000 (16:19 -0400)]
lib/Catalyst.pm

index f9cae7a..6bc7e3d 100755 (executable)
@@ -1256,7 +1256,7 @@ EOF
     # Turn autoflush back off once setup is finished.
     # TODO: this is being done purely for Static::Simple (legacy API), and has been suggested by
     # mst to be removed and require/update Static::Simple to set this flag itself
-    $class->log->autoflush(0) if ($class->log->can('autoflush'));
+    $class->log->autoflush(undef) if ($class->log->can('autoflush'));
 
     return $class || 1; # Just in case someone named their Application 0...
 }