ir_logging fix msg, add uid in form view

bzr revid: al@openerp.com-20140316194328-3tooio3km8ev26wj
This commit is contained in:
Antony Lesuisse 2014-03-16 20:43:28 +01:00
parent 99a89152b4
commit aa7d42acfc
2 changed files with 2 additions and 2 deletions

View File

@ -24,6 +24,7 @@
<field name="arch" type="xml">
<tree string="Logs" version="7.0">
<field name="create_date" />
<field name="create_uid" />
<field name="dbname" />
<field name="type" />
<field name="name" />
@ -61,6 +62,5 @@
<field name="search_view_id" ref="ir_logging_search_view" />
</record>
<menuitem parent="base.menu_custom" id="ir_logging_all_menu" action="ir_logging_all_act" />
</data>
</openerp>

View File

@ -81,7 +81,7 @@ class PostgreSQLHandler(logging.Handler):
cr = None
try:
cr = sql_db.db_connect(dbname).cursor()
msg = record.msg
msg = unicode(record.msg)
traceback = getattr(record, 'exc_text', '')
if traceback:
msg = "%s\n%s" % (msg, traceback)