diff options
author | Michael Gapczynski <GapczynskiM@gmail.com> | 2012-06-05 17:44:07 -0400 |
---|---|---|
committer | Michael Gapczynski <GapczynskiM@gmail.com> | 2012-06-05 18:42:16 -0400 |
commit | 826a439c15b17cca02eca1fbca66ca3d823d5c44 (patch) | |
tree | 5a6aafc750d4e3e636364d9d9ef6d576e6bdd0f4 | |
parent | f1b10fcc93dad0667cf50f0e3d9d423705a4ed8a (diff) | |
download | nextcloud-server-826a439c15b17cca02eca1fbca66ca3d823d5c44.tar.gz nextcloud-server-826a439c15b17cca02eca1fbca66ca3d823d5c44.zip |
Supress any warnings if log file does not exist
-rw-r--r-- | lib/log/owncloud.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/log/owncloud.php b/lib/log/owncloud.php index 5913d8b5b83..92914af8fca 100644 --- a/lib/log/owncloud.php +++ b/lib/log/owncloud.php @@ -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; |