Uh oh!
There was an error while loading. Please reload this page.
feat: include file id in audit logs - #44871
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
szaimen
commented
Apr 18, 2024
Sorry, don't feel confident enough to review this |
Uh oh!
There was an error while loading. Please reload this page.
| } catch (InvalidPathException|NotFoundException $e) { | ||
| return; |
There was a problem hiding this comment.
Should still log something, maybe even on error level, so that this is not missed.
There was a problem hiding this comment.
@come-nc logging the exception message as error in log file. I tried to delete a file that is already deleted from oc_filecache and also removed from data/admin/files/log.txt. I get a message in the UI saying "Delete file" action failed but i did not find it getting logged as a error message
come-nc
commented
Apr 22, 2024
Please also fix commit names, should not all start with |
| /** | ||
| * Log a error message with a log level of error | ||
| * @param string $text | ||
| */ | ||
| public function error(string $text): void { | ||
| $this->logger->error($text, ['app' => 'admin_audit']); | ||
| } |
There was a problem hiding this comment.
Please remove this method, it makes thing unnecessiraly convoluted.
Inject the loggen in the child class if possible, use \OCP\Server::get if not.
6ed0835 to
977bf8eCompareUh oh!
There was an error while loading. Please reload this page.
bc3e830 to
710f11dCompare710f11d to
7b0b54fCompareSigned-off-by: yemkareems <yemkareems@gmail.com>
7b0b54f to
4d22880Compare
Summary
nc.logs.txt
Checklist