You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With log statements enabled, sqlx logs queries to stderr/stdout like:
SELECT foo, bar, zoo
FROM baz
WHERE foo = '123'
Not exactly this but you get the idea, newline \n chars are inserted for prettifying the query (and this is appreciated)
However, my log collection service interprets these \n chars as different log messages, and will break a single query over several messages -- making the query almost illegible
I realize this is not a sqlx issue
My question is, is there any setting I can change so that the query is logged in a single line?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
With log statements enabled, sqlx logs queries to stderr/stdout like:
\n
chars are inserted for prettifying the query (and this is appreciated)\n
chars as different log messages, and will break a single query over several messages -- making the query almost illegibleBeta Was this translation helpful? Give feedback.
All reactions