kernel: change print into logger
bzr revid: ced-d674c12d0594923521709de38d68636aa14e30a0
This commit is contained in:
parent
f0ba2f2dde
commit
37d45e4ffb
|
@ -340,7 +340,7 @@ def trans_load_data(db_name, data, lang, strict=False, lang_name=None):
|
|||
else:
|
||||
trans_obj.create(cr, uid, dic)
|
||||
except Exception, e:
|
||||
print 'Import error', e, 'on line %d: %s!' % (line, row)
|
||||
logger.notifyChannel('init', netsvc.LOG_ERROR, 'Import error: %s on line %d: %s!' % (str(e), line, row))
|
||||
cr.commit()
|
||||
cr.close()
|
||||
logger.notifyChannel("init", netsvc.LOG_INFO, "translation file loaded succesfully")
|
||||
|
|
Loading…
Reference in New Issue