This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
write log messages to stderr #5853
Labels
question
issue where a "fix" on the SQLAlchemy side is unlikely, hence more of a usage question
Hello everyone.
Describe the bug
At the moment
sqlalchemy
prints out messages tostdout
by default, e.g when settingecho=True
increate_engine
. This is also stated out clearly in docs.Messages by
sqlalchemy
are usually useful for diagnostics. According to https://www.gnu.org/software/libc/manual/html_node/Standard-Streams.html it is recommended to usestderr
for such a purpose. This becomes more important, if the program, in whichsqlalchemy
is used, writes its output tostdout
, as there is no (easy) way which messages are a result of the program and which one are debug messages bysqlalchemy
.Expected behavior
Messages by
sqlalchemy
should be printed out tostderr
by default, or at least this should be configurable.Is this the correct line that is responsable for the current behavior?
fin swimmer
The text was updated successfully, but these errors were encountered: