1
0
Fork 0
mirror of https://github.com/Luzifer/mqtt2influx.git synced 2024-12-20 09:31:23 +00:00

Fix messed up time-format

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2020-07-11 20:11:54 +02:00
parent b265cf072e
commit d10d16819f
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -102,7 +102,7 @@ if __name__ == '__main__':
configpath = os.environ['CONFIG_PATH'] configpath = os.environ['CONFIG_PATH']
logging.basicConfig( logging.basicConfig(
datefmt='%m/%d/%Y %I:%M:%S %p', datefmt='%Y-%m-%d %H:%M:%S',
format='[%(asctime)s][%(levelname)s] %(message)s', format='[%(asctime)s][%(levelname)s] %(message)s',
level=loglevel, level=loglevel,
) )