diff options
| author | Vo Minh Thu <vmt@openerp.com> | 2011-01-26 15:22:19 +0100 |
|---|---|---|
| committer | Vo Minh Thu <vmt@openerp.com> | 2011-01-26 15:22:19 +0100 |
| commit | 7bf401381db1ba2bbed032e394d9ae8a11fb180b (patch) | |
| tree | 28ae7ff440fa1ae5810b064bcc231d34787d24e7 /bin/tools | |
| parent | b0bdfb1c24c7d3310f37fc047ec1c3e8fb288adf (diff) | |
[IMP] netsvc/tools.config: the part of netsvc tools.config needs is moved in a new loglevels module.
bzr revid: vmt@openerp.com-20110126142219-18j842m60diwsdph
Diffstat (limited to 'bin/tools')
| -rw-r--r-- | bin/tools/config.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/tools/config.py b/bin/tools/config.py index bc9229e0b72..b7ebd1d26a6 100644 --- a/bin/tools/config.py +++ b/bin/tools/config.py @@ -23,7 +23,7 @@ import ConfigParser import optparse import os import sys -import netsvc +import loglevels import logging import release @@ -102,7 +102,7 @@ class configmanager(object): self.config_file = fname self.has_ssl = check_ssl() - self._LOGLEVELS = dict([(getattr(netsvc, 'LOG_%s' % x), getattr(logging, x)) + self._LOGLEVELS = dict([(getattr(loglevels, 'LOG_%s' % x), getattr(logging, x)) for x in ('CRITICAL', 'ERROR', 'WARNING', 'INFO', 'TEST', 'DEBUG', 'DEBUG_RPC', 'DEBUG_SQL', 'DEBUG_RPC_ANSWER','NOTSET')]) version = "%s %s" % (release.description, release.version) |
