diff options
author | Michael Gapczynski <GapczynskiM@gmail.com> | 2012-06-05 17:44:07 -0400 |
---|---|---|
committer | Michael Gapczynski <GapczynskiM@gmail.com> | 2012-06-05 17:44:07 -0400 |
commit | 3ce6344d40385e38335fb9716233cbf7c5241860 (patch) | |
tree | 90611d276d9e68d12d6b8cbff0b7aa4d070fd3f2 | |
parent | fc56a668ce756811f8b98557548fff2bf34799a4 (diff) | |
download | nextcloud-server-3ce6344d40385e38335fb9716233cbf7c5241860.tar.gz nextcloud-server-3ce6344d40385e38335fb9716233cbf7c5241860.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; |