mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Supress any warnings if log file does not exist
This commit is contained in:
parent
f1b10fcc93
commit
826a439c15
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue