From: Mike Bayer Date: Sat, 20 Nov 2010 21:28:39 +0000 (-0500) Subject: - logging has been overhauled such that engines no longer need to encode the X-Git-Tag: rel_0_7b1~241 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca2d85540f21f2afaa9def55b8f907adced62e80;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - logging has been overhauled such that engines no longer need to encode the "hex id" string in their logging name in order to maintain separate loggers per engine. thanks to Vinay Sajip for assistance. merge of [ticket:1926] --- ca2d85540f21f2afaa9def55b8f907adced62e80 diff --cc lib/sqlalchemy/engine/base.py index 326c33f2db,c182221ca7..c07c83a07d --- a/lib/sqlalchemy/engine/base.py +++ b/lib/sqlalchemy/engine/base.py @@@ -1624,15 -1622,13 +1624,15 @@@ class Engine(Connectable, log.Identifie self.logging_name = logging_name self.echo = echo self.engine = self - self.logger = log.instance_logger(self, echoflag=echo) + log.instance_logger(self, echoflag=echo) if proxy: - self.Connection = _proxy_connection_cls(Connection, proxy) - else: - self.Connection = Connection +# util.warn_deprecated("The 'proxy' argument to create_engine() is deprecated. Use event.listen().") + interfaces.ConnectionProxy._adapt_listener(self, proxy) if execution_options: self.update_execution_options(**execution_options) + + + dispatch = event.dispatcher(events.EngineEvents) def update_execution_options(self, **opt): """update the execution_options dictionary of this :class:`Engine`.