add help for logging command, and set it as a weboob command
This commit is contained in:
parent
37266a7945
commit
a8b6594af0
1 changed files with 10 additions and 1 deletions
|
|
@ -70,7 +70,7 @@ class ReplApplication(Cmd, BaseApplication):
|
||||||
'Type "help" to display available commands.',
|
'Type "help" to display available commands.',
|
||||||
'',
|
'',
|
||||||
))
|
))
|
||||||
self.weboob_commands = ['backends', 'condition', 'count', 'formatter', 'select', 'quit']
|
self.weboob_commands = ['backends', 'condition', 'count', 'formatter', 'logging', 'select', 'quit']
|
||||||
self.hidden_commands = set(['EOF'])
|
self.hidden_commands = set(['EOF'])
|
||||||
|
|
||||||
option_parser = OptionParser(self.SYNOPSIS, version=self._get_optparse_version())
|
option_parser = OptionParser(self.SYNOPSIS, version=self._get_optparse_version())
|
||||||
|
|
@ -597,6 +597,15 @@ class ReplApplication(Cmd, BaseApplication):
|
||||||
return choices
|
return choices
|
||||||
|
|
||||||
def do_logging(self, line):
|
def do_logging(self, line):
|
||||||
|
"""
|
||||||
|
logging [LEVEL]
|
||||||
|
|
||||||
|
Set logging level.
|
||||||
|
|
||||||
|
Availables: debug, info, warning, error.
|
||||||
|
* quiet is an alias for error
|
||||||
|
* default is an alias for warning
|
||||||
|
"""
|
||||||
args = self.parseargs(line, 1, 0)
|
args = self.parseargs(line, 1, 0)
|
||||||
levels = (('debug', logging.DEBUG),
|
levels = (('debug', logging.DEBUG),
|
||||||
('info', logging.INFO),
|
('info', logging.INFO),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue