Tweak debug logging

This commit is contained in:
Claus-Justus Heine
2025-05-07 23:44:16 +02:00
parent dc5458e9a8
commit 1354242744
2 changed files with 6 additions and 3 deletions

View File

@@ -345,9 +345,12 @@ final class UserBackend extends ABackend implements
} }
if ($isCorrect !== true) { if ($isCorrect !== true) {
$this->logger->info( $this->logger->error(
"Invalid password attempt for user: $uid", "Invalid password attempt for user: $uid",
["app" => $this->appName] [
"app" => $this->appName,
'exception' => new \Exception('TRACE PROVIDER'),
]
); );
return false; return false;
} }

View File

@@ -61,7 +61,7 @@ class Cache
$this->cache = $factory->createDistributed(); $this->cache = $factory->createDistributed();
$logger->debug("Distributed cache initiated.", ["app" => $AppName]); $logger->debug("Distributed cache initiated.", ["app" => $AppName]);
} else { } else {
$logger->warning( $logger->debug(
"There's no distributed cache available, fallback to null cache.", "There's no distributed cache available, fallback to null cache.",
["app" => $AppName] ["app" => $AppName]
); );