From: Mike Bayer Date: Sun, 8 Oct 2006 20:05:37 +0000 (+0000) Subject: add table name to save_obj log X-Git-Tag: rel_0_3_0~70 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f50685d0b072a4c1722eaca99fc99380df2ae5a;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git add table name to save_obj log --- diff --git a/lib/sqlalchemy/orm/mapper.py b/lib/sqlalchemy/orm/mapper.py index 4c7a2dee1b..977a438e14 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 = {}