1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-20 13:50:12 +01:00

Add timstamp to logs

This commit is contained in:
Jochen Sprickerhof 2020-07-04 18:56:10 +02:00
parent 174bbf0bdc
commit d8b73dd241

View File

@ -173,7 +173,7 @@ def main():
quiet = any(s in sys.argv for s in ['-q', '--quiet']) quiet = any(s in sys.argv for s in ['-q', '--quiet'])
# Helpful to differentiate warnings from errors even when on quiet # Helpful to differentiate warnings from errors even when on quiet
logformat = '%(levelname)s: %(message)s' logformat = '%(asctime)s %(levelname)s: %(message)s'
loglevel = logging.INFO loglevel = logging.INFO
if verbose: if verbose:
loglevel = logging.DEBUG loglevel = logging.DEBUG