Dynamic log level on LookupException

This commit is contained in:
2021-09-13 23:47:45 +03:00
parent 6428a1ec33
commit 3c7686405d
2 changed files with 10 additions and 1 deletions

View File

@ -57,7 +57,7 @@ final class Lookup
try {
return Lookup\Response::fromJson($buffer);
} catch (LookupException $e) {
$logger->warning($e->getMessage());
$logger->log($e->level(), $uri.' '.$e->getMessage());
return null;
}