fixup! *.py: logging basiconfig refactor to use conditional expression
This commit is contained in:
parent
c2e5abd33d
commit
dc2bff4059
1 changed files with 1 additions and 4 deletions
|
@ -2947,10 +2947,7 @@ def parse_args() -> argparse.Namespace:
|
|||
def main() -> None:
|
||||
args = parse_args()
|
||||
|
||||
if args.verbose:
|
||||
logging.basicConfig(level=logging.DEBUG)
|
||||
else:
|
||||
logging.basicConfig(level=logging.INFO)
|
||||
logging.basicConfig(level=logging.DEBUG if args.verbose else logging.INFO)
|
||||
|
||||
dir_model = args.model
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue