@@ -549,7 +549,7 @@ discard block |
||
| 549 | 549 | * if wnd.logging.enable is set to true in the config will log a leave line |
| 550 | 550 | * with the given function, the return value or the exception |
| 551 | 551 | * |
| 552 | - * @param $function |
|
| 552 | + * @param string $function |
|
| 553 | 553 | * @param mixed $result an exception will be logged and then returned |
| 554 | 554 | * @return mixed |
| 555 | 555 | */ |
@@ -619,6 +619,9 @@ discard block |
||
| 619 | 619 | } |
| 620 | 620 | } |
| 621 | 621 | |
| 622 | + /** |
|
| 623 | + * @param string $function |
|
| 624 | + */ |
|
| 622 | 625 | private function swallow($function, \Exception $exception) { |
| 623 | 626 | if (\OC::$server->getConfig()->getSystemValue('wnd.logging.enable', false) === true) { |
| 624 | 627 | Util::writeLog('wnd', "$function swallowing ".get_class($exception) |