]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
add table name to save_obj log
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 8 Oct 2006 20:05:37 +0000 (20:05 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 8 Oct 2006 20:05:37 +0000 (20:05 +0000)
lib/sqlalchemy/orm/mapper.py

index 4c7a2dee1bacecd4198682cb584e5e6e4b0978f0..977a438e14c735ecfd0560b901ba6251d1d28f9a 100644 (file)
@@ -773,7 +773,7 @@ class Mapper(object):
                 if table not in mapper.tables or not mapper._has_pks(table):
                     continue
                 instance_key = mapper.instance_key(obj)
-                self.__log_debug("save_obj() instance %s identity %s" % (mapperutil.instance_str(obj), str(instance_key)))
+                self.__log_debug("save_obj() table '%s' instance %s identity %s" % (table.name, mapperutil.instance_str(obj), str(instance_key)))
 
                 isinsert = not instance_key in uowtransaction.uow.identity_map and not postupdate and not has_identity(obj)
                 params = {}