Skip to content

Commit

Permalink
fix(logger): ignore appcontainer for core
Browse files Browse the repository at this point in the history
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
  • Loading branch information
ArtificialOwl committed Aug 27, 2024
1 parent 829642c commit d0f57b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/public/Log/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function logger(?string $appId = null): LoggerInterface {
return new NullLogger();
}

if ($appId !== null) {
if ($appId !== null && $appId !== 'core') {
try {
$appContainer = OC::$server->getRegisteredAppContainer($appId);
return $appContainer->get(LoggerInterface::class);
Expand Down

0 comments on commit d0f57b5

Please sign in to comment.