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