summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2006-10-08 20:05:37 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2006-10-08 20:05:37 +0000
commit4f50685d0b072a4c1722eaca99fc99380df2ae5a (patch)
treefded9a929f8195ee6836b2fdb832a95f2b022ae6 /lib/sqlalchemy
parentf6b766fb1812ffa0aa430f8b0fce296a660ee8ec (diff)
downloadsqlalchemy-4f50685d0b072a4c1722eaca99fc99380df2ae5a.tar.gz
add table name to save_obj log
Diffstat (limited to 'lib/sqlalchemy')
-rw-r--r--lib/sqlalchemy/orm/mapper.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/orm/mapper.py b/lib/sqlalchemy/orm/mapper.py
index 4c7a2dee1..977a438e1 100644
--- a/lib/sqlalchemy/orm/mapper.py
+++ b/lib/sqlalchemy/orm/mapper.py
@@ -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 = {}