From 028dd2cc9bd26ebf633fd9c8349b5a665aee564a Mon Sep 17 00:00:00 2001 From: Stephane Wirtel Date: Fri, 19 Dec 2008 16:54:59 +0100 Subject: [PATCH] [IMP] Remove unused log bzr revid: stephane@tinyerp.com-20081219155459-ofgwl03yo26s28ry --- bin/osv/orm.py | 1 - bin/workflow/wkf_logs.py | 18 ++++++++++-------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/bin/osv/orm.py b/bin/osv/orm.py index 23c8efab6ff..2efdf20b6c9 100644 --- a/bin/osv/orm.py +++ b/bin/osv/orm.py @@ -948,7 +948,6 @@ class orm_template(object): return None - netsvc.Logger().notifyChannel('orm', netsvc.LOG_DEBUG, type(src)) doc_src = dom.minidom.parseString(encode(src)) doc_dest = dom.minidom.parseString(encode(inherit)) toparse = doc_dest.childNodes diff --git a/bin/workflow/wkf_logs.py b/bin/workflow/wkf_logs.py index 72299da8099..0f34ebd9140 100644 --- a/bin/workflow/wkf_logs.py +++ b/bin/workflow/wkf_logs.py @@ -26,14 +26,16 @@ import netsvc def log(cr,ident,act_id,info=''): - msg = """ -res_type: %r -res_id: %d -uid: %d -act_id: %d -info: %s -""" % (ident[1], ident[2], ident[0], act_id, info) - netsvc.Logger().notifyChannel('wkf_log', netsvc.LOG_DEBUG, msg) + return + # msg = """ + #res_type: %r + #res_id: %d + #uid: %d + #act_id: %d + #info: %s + #""" % (ident[1], ident[2], ident[0], act_id, info) + + #netsvc.Logger().notifyChannel('wkf_log', netsvc.LOG_DEBUG, msg) #cr.execute('insert into wkf_logs (res_type, res_id, uid, act_id, time, info) values (%s,%s,%s,%s,current_time,%s)', (ident[1],int(ident[2]),int(ident[0]),int(act_id),info))