diff options
| author | Kuldeep Joshi (OpenERP) <kjo@tinyerp.com> | 2012-06-14 11:34:50 +0530 |
|---|---|---|
| committer | Kuldeep Joshi (OpenERP) <kjo@tinyerp.com> | 2012-06-14 11:34:50 +0530 |
| commit | 3611f431b93e4bed0bfb8d360dc19cb2aa52778b (patch) | |
| tree | 99288c415febe348a03682d7409d29d9847dd33e /addons/document | |
| parent | 2b4f40108cf1b5bcfa87873d4301f4ef29e9478d (diff) | |
[IMP]document: remove warning
bzr revid: kjo@tinyerp.com-20120614060450-w8771020su128gmg
Diffstat (limited to 'addons/document')
| -rw-r--r-- | addons/document/document_directory.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/addons/document/document_directory.py b/addons/document/document_directory.py index d09d2cc86d5..9cc750b7c12 100644 --- a/addons/document/document_directory.py +++ b/addons/document/document_directory.py @@ -78,9 +78,8 @@ class document_directory(osv.osv): root_id = objid.read(cr, uid, mid, ['res_id'])['res_id'] return root_id except Exception, e: - import netsvc - logger = netsvc.Logger() - logger.notifyChannel("document", netsvc.LOG_WARNING, 'Cannot set directory root:'+ str(e)) + import logging + logging.getLogger('document').warning('Cannot set directory root:'+ str(e)) return False return objid.browse(cr, uid, mid, context=context).res_id |
