fix: not logging the JSON message on a PGRST002 error

It happens right after the configuration is loaded and before
the schema cache is queried.
This commit is contained in:
Laurence Isla
2025-10-20 18:42:56 +00:00
parent b7ad217cd3
commit c88ddfe18d
5 changed files with 32 additions and 2 deletions
+3
View File
@@ -95,6 +95,9 @@ observationLogger loggerState logLevel obs = case obs of
o@(QueryErrorCodeHighObs _) -> do
when (logLevel >= LogError) $ do
logWithZTime loggerState $ observationMessage o
o@SchemaCacheEmptyObs ->
when (logLevel >= LogError) $ do
logWithZTime loggerState $ observationMessage o
o@(HasqlPoolObs _) -> do
when (logLevel >= LogDebug) $ do
logWithZTime loggerState $ observationMessage o