Don't error out on console.
This commit is contained in:
parent
392a1b6662
commit
c9c6a0ab1e
1 changed files with 2 additions and 2 deletions
|
@ -76,8 +76,8 @@ class OC_Log_Owncloud {
|
|||
self::$reqId = uniqid();
|
||||
}
|
||||
$reqId = self::$reqId;
|
||||
$url = $_SERVER['REQUEST_URI'];
|
||||
$method = $_SERVER['REQUEST_METHOD'];
|
||||
$url = isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : '--';
|
||||
$method = isset($_SERVER['REQUEST_METHOD']) ? $_SERVER['REQUEST_METHOD'] : '--';
|
||||
$entry = compact('reqId', 'app', 'message', 'level', 'time', 'method', 'url');
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in a new issue