Revert "Bug 15253: Add Koha::Logger based logging for SIP2"
[koha-equinox.git] / Koha / Logger.pm
index 39e8ba3..ed85c99 100644 (file)
@@ -159,14 +159,11 @@ sub _check_conf {    # check logfiles in log4perl config (at initialization)
         if ( $l =~ /(OPAC|INTRANET)\.filename\s*=\s*(.*)\s*$/i ) {
 
             # we only check the two default logfiles, skipping additional ones
-            if ( !-w $2 ) {
-                warn "Log file $2 is not writable!";
-                return;
-            };
+            return if !-w $2;
             push @logs, $1 . ':' . $2;
         }
     }
-    return unless @logs; # we should find one
+    return if !@logs;    # we should find one
     return \@logs;
 }