aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Log
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/Log')
-rw-r--r--lib/public/Log/functions.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/public/Log/functions.php b/lib/public/Log/functions.php
index cc6961d8fba..ac043b4d958 100644
--- a/lib/public/Log/functions.php
+++ b/lib/public/Log/functions.php
@@ -49,6 +49,7 @@ use function class_exists;
* @since 24.0.0
*/
function logger(string $appId = null): LoggerInterface {
+ /** @psalm-suppress TypeDoesNotContainNull false-positive, it may contain null if we are logging from initialization */
if (!class_exists(OC::class) || OC::$server === null) {
// If someone calls this log before Nextcloud is initialized, there is
// no logging available. In that case we return a noop implementation