Generally, echo=True for log level of INFO is very helpful for log files.
dbSession.add(bigObject)try:# wrap `flush` in a disabled block, so we don't go crazy with logginglogging.getLogger('sqlalchemy.engine.base.Engine').disabled = TruedbSession.flush()except:raisefinally:logging.getLogger('sqlalchemy.engine.base.Engine').disabled = False
On 08/17/2016 01:25 PM, Kent wrote:
Generally, echo=True for log level of INFO is very helpful for log files.
But on INSERT/UPDATE of a Binary column (at least with Oracle, BLOB) it
sure would be nice to skip the logging of the sometimes massive binary data.
Is this possible?
http://docs.sqlalchemy.org/en/latest/changelog/migration_11.html#large-parameter-and-row-values-are-now-truncated-in-logging-and-exception-displays
until you can upgrade write a logging output filter...
Thanks,
Kent
--
You received this message because you are subscribed to the Google
Groups "sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to sqlalchemy+unsubscribe@googlegroups.com
<mailto:sqlalchemy+unsubscribe@googlegroups.com>.
To post to this group, send email to sqlal...@googlegroups.com
<mailto:sqlalchemy@googlegroups.com>.
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "sqlalchemy" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sqlalchemy/gA3Q4DQWLKw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sqlalchemy+unsubscribe@googlegroups.com.
To post to this group, send email to sqlal...@googlegroups.com.