mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-python
synced 2026-01-15 09:53:32 +01:00
Cmd.py: Fix log inclusion
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
d15242600a
commit
51bbed559d
1 changed files with 2 additions and 1 deletions
|
|
@ -6,6 +6,7 @@ import inspect
|
||||||
import re
|
import re
|
||||||
|
|
||||||
import Object
|
import Object
|
||||||
|
import log
|
||||||
|
|
||||||
class Cmd(Object.Object): # export
|
class Cmd(Object.Object): # export
|
||||||
|
|
||||||
|
|
@ -44,5 +45,5 @@ def run_sub_commands(description = '', prefix = 'Cmd'): # export
|
||||||
cls().add_parser(subparsers)
|
cls().add_parser(subparsers)
|
||||||
|
|
||||||
args=parser.parse_args()
|
args=parser.parse_args()
|
||||||
jwutils.log.set_level(args.log_level)
|
log.set_level(args.log_level)
|
||||||
args.func(args)
|
args.func(args)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue