diff options
| author | ced <> | 2007-07-10 15:25:20 +0000 |
|---|---|---|
| committer | ced <> | 2007-07-10 15:25:20 +0000 |
| commit | 37d45e4ffbe712aeea7065da8fa93d8ccf40335b (patch) | |
| tree | c1d59cb2663d40b46fba09c5a7f56b373fc56c6e /bin/tools | |
| parent | f0ba2f2dde85ecb6954cf61738df99abb9553317 (diff) | |
kernel: change print into logger
bzr revid: ced-d674c12d0594923521709de38d68636aa14e30a0
Diffstat (limited to 'bin/tools')
| -rw-r--r-- | bin/tools/translate.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/tools/translate.py b/bin/tools/translate.py index 82766d8cf54..e5f8815a776 100644 --- a/bin/tools/translate.py +++ b/bin/tools/translate.py @@ -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") |
