New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Channel retrying message doesn't doesn't follow log format #3320
Comments
This might be another issue. But I've noticed that hasql-notification is ignoring an error. Check: void $ PQ.consumeInput pqCon https://github.com/diogob/hasql-notifications/blob/master/src/Hasql/Notifications.hs#L175 And the pg docs say:
Edit: Reported this on diogob/hasql-notifications#20. |
I think the above doesn't come from |
It looks like it comes from the It can be traced first in the import Debug.Trace (traceIO)
-- ...
waitForNotifications sendNotification con =
withLibPQConnection con $ void . forever . pqFetch
where
pqFetch pqCon = do
traceIO "Before notifies"
mNotification <- PQ.notifies pqCon
traceIO "After notifies"
-- ... Then, after executing the
Which leads to the -- ...
notifies connection =
withConn connection $ \ptr ->
traceIO "Before PQnotifies"
mn <- c_PQnotifies ptr
traceIO "After PQnotifies"
-- ... And it logs:
So maybe somewhere in the PQnotifies function of the LibPQ library, it logs this error? Some notes:
|
Problem
When doing:
The following logs are produced:
Note the
FATAL: terminating connection due to administrator command
, it doesn't follow the same format.Maybe there's a die (prints to
stderr
) somewhere in our code orhasql-notifications
.Related
The text was updated successfully, but these errors were encountered: