diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-08-24 21:10:36 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-08-24 21:10:36 +0000 |
commit | 4c29ed71d0f6ff656da4a04437097c290122f75c (patch) | |
tree | 9ffeef2a9cba96078139ee8155d2cfaaee9efe85 /lib/sqlalchemy/orm/interfaces.py | |
parent | 6f60e768837f6b91a75dc2d62dbd215471bf09f7 (diff) | |
download | sqlalchemy-4c29ed71d0f6ff656da4a04437097c290122f75c.tar.gz |
- logging scale-back; the echo_uow flag on Session is deprecated, and unit of work logging is now
class level like all the other logging.
- trimmed back the logging API, centralized class_logger() as the single point of configuration for
logging, removed per-instance logging checks from ORM.
- Engine and Pool logging remain at the instance level. The modulus of "instance ids" has been upped
to 65535. I'd like to remove the modulus altogether but I do see a couple of users each month
calling create_engine() on a per-request basis, an incorrect practice but I'd rather their applications
don't just run out of memory.
Diffstat (limited to 'lib/sqlalchemy/orm/interfaces.py')
-rw-r--r-- | lib/sqlalchemy/orm/interfaces.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/sqlalchemy/orm/interfaces.py b/lib/sqlalchemy/orm/interfaces.py index 29bc980bc..ff15062aa 100644 --- a/lib/sqlalchemy/orm/interfaces.py +++ b/lib/sqlalchemy/orm/interfaces.py @@ -623,8 +623,6 @@ class PropertyOption(MapperOption): self._process(query, False) def _process(self, query, raiseerr): - if self._should_log_debug: - self.logger.debug("applying option to Query, property key '%s'" % self.key) paths = self.__get_paths(query, raiseerr) if paths: self.process_query_property(query, paths) @@ -703,9 +701,6 @@ class PropertyOption(MapperOption): return l -PropertyOption.logger = log.class_logger(PropertyOption) -PropertyOption._should_log_debug = log.is_debug_enabled(PropertyOption.logger) - class AttributeExtension(object): """An abstract class which specifies `append`, `delete`, and `set` event handlers to be attached to an object property. |