mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 02:48:38 -04:00
Increasing verbosity for sqlalchemy on -vvv.
This commit is contained in:
parent
0ac8923ecc
commit
7ea767dbe8
1 changed files with 3 additions and 1 deletions
4
main.py
4
main.py
|
|
@ -125,8 +125,10 @@ async def set_log_level(args):
|
|||
sa_logger = logging.getLogger('sqlalchemy.engine')
|
||||
if args.verbose == 1:
|
||||
root_logger.setLevel(logging.INFO)
|
||||
elif args.verbose and args.verbose == 2:
|
||||
root_logger.setLevel(logging.DEBUG)
|
||||
sa_logger.setLevel(logging.INFO)
|
||||
elif args.verbose and args.verbose >= 2:
|
||||
elif args.verbose and args.verbose >= 3:
|
||||
root_logger.setLevel(logging.DEBUG)
|
||||
sa_logger.setLevel(logging.DEBUG)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue