Supress any warnings if log file does not exist
This commit is contained in:
parent
f1b10fcc93
commit
826a439c15
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue