Re: [sqlalchemy] double entries w/ logger config file (echo was set to False, now True after logging configured)

2023-06-17 Thread Dmitry Mugtasimov
See https://stackoverflow.com/a/76498428/1952977 On Monday, May 10, 2010 at 8:05:40 AM UTC+4 Michael Bayer wrote: > The issue is that you have configured two handlers by setting > handler=consoleHandler in two places, it should only be on "root" typically. > > engine.echo uses Python logging und

Re: [sqlalchemy] double entries w/ logger config file (echo was set to False, now True after logging configured)

2023-06-17 Thread Dmitry Mugtasimov
See https://stackoverflow.com/a/76498428/1952977 On Monday, May 10, 2010 at 8:05:40 AM UTC+4 Michael Bayer wrote: > The issue is that you have configured two handlers by setting > handler=consoleHandler in two places, it should only be on "root" typically. > > engine.echo uses Python logging und

Re: [sqlalchemy] double entries w/ logger config file (echo was set to False, now True after logging configured)

2010-05-09 Thread Michael Bayer
The issue is that you have configured two handlers by setting handler=consoleHandler in two places, it should only be on "root" typically. engine.echo uses Python logging underneath and calling engine.echo as a getter calls logger.isEnabledFor(logging.INFO), so that indicates nothing about the

[sqlalchemy] double entries w/ logger config file (echo was set to False, now True after logging configured)

2010-05-09 Thread hal_robertson
Hi there I have an application that uses the Python logging facility. The logging system is configured through a config file I would like to be able to adjust sqlalchemy logging through the config file However, it seems when I configure the logging system it turns sqlalchemy echo to True on my