]> source.dussan.org Git - nextcloud-server.git/commitdiff
Supress any warnings if log file does not exist
authorMichael Gapczynski <GapczynskiM@gmail.com>
Tue, 5 Jun 2012 21:44:07 +0000 (17:44 -0400)
committerMichael Gapczynski <GapczynskiM@gmail.com>
Tue, 5 Jun 2012 21:44:07 +0000 (17:44 -0400)
lib/log/owncloud.php

index 5913d8b5b8360c1ea2491578fb5d3c1b4563d03d..92914af8fca167bd311f6ebe3e4de0baf71584b0 100644 (file)
@@ -63,7 +63,7 @@ class OC_Log_Owncloud {
                self::init();
                $minLevel=OC_Config::getValue( "loglevel", OC_Log::WARN );
                $entries = array();
-               $handle = fopen(self::$logFile, 'r');
+               $handle = @fopen(self::$logFile, 'r');
                if ($handle) {
                        // Just a guess to set the file pointer to the right spot
                        $maxLineLength = 150;