mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-24 04:05:39 +01:00
logging: print log level name first on line when verbose
This commit is contained in:
parent
33345d90d1
commit
1796a14007
@ -166,7 +166,7 @@ def setup_log(silent, verbose=False):
|
|||||||
elif verbose:
|
elif verbose:
|
||||||
stream = sys.stderr
|
stream = sys.stderr
|
||||||
level = logging.DEBUG
|
level = logging.DEBUG
|
||||||
fmt = logging.Formatter('[%(created).3f] %(pathname)s/%(funcName)s: %(levelname)s %(message)s')
|
fmt = logging.Formatter('%(levelname)s [%(created)] %(pathname)s/%(funcName)s: %(message)s')
|
||||||
else:
|
else:
|
||||||
stream = sys.stdout
|
stream = sys.stdout
|
||||||
level = logging.INFO
|
level = logging.INFO
|
||||||
|
Loading…
Reference in New Issue
Block a user