Supress any warnings if log file does not exist

This commit is contained in:
Michael Gapczynski 2012-06-05 17:44:07 -04:00
parent fc56a668ce
commit 3ce6344d40
1 changed files with 1 additions and 1 deletions

View File

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