1
0
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:
Olof Johansson 2014-10-12 21:00:38 +02:00
parent 33345d90d1
commit 1796a14007

View File

@ -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