summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Gapczynski <GapczynskiM@gmail.com>2012-06-05 17:44:07 -0400
committerMichael Gapczynski <GapczynskiM@gmail.com>2012-06-05 17:44:07 -0400
commit3ce6344d40385e38335fb9716233cbf7c5241860 (patch)
tree90611d276d9e68d12d6b8cbff0b7aa4d070fd3f2
parentfc56a668ce756811f8b98557548fff2bf34799a4 (diff)
downloadnextcloud-server-3ce6344d40385e38335fb9716233cbf7c5241860.tar.gz
nextcloud-server-3ce6344d40385e38335fb9716233cbf7c5241860.zip
Supress any warnings if log file does not exist
-rw-r--r--lib/log/owncloud.php2
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;