kernel: change print into logger

bzr revid: ced-d674c12d0594923521709de38d68636aa14e30a0
This commit is contained in:
ced 2007-07-10 15:25:20 +00:00
parent f0ba2f2dde
commit 37d45e4ffb
1 changed files with 1 additions and 1 deletions

View File

@ -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")