Toby Bradshaw wrote: > > Well problem worked around by using echo=True for dev builds and thanks > for your suggestion. > > Your statement: > >> Doing setLevel() etc. you have to do > before any SQLAlchemy code is imported > > Unfortunately doesn't seem to help since the logging module later reports: > > "No handlers could be found for > logger "sqlalchemy.engine.base.Engine.0x...bf34"" > > and logging still doesn't seem to work.
when you use python logging, you must define handlers if you are going to enable a particular logging. The quickest way to do this is by calling logging.basicConfig(). --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---