Fixed issue with microseconds missing if the second is on the dot.
This commit is contained in:
parent
6a2ab18c84
commit
bed6ff0b94
1 changed files with 2 additions and 2 deletions
|
@ -76,14 +76,14 @@ class rabbitMQClient:
|
||||||
|
|
||||||
if result[3] == 'cpumem':
|
if result[3] == 'cpumem':
|
||||||
|
|
||||||
result[2] = datetime.datetime.strptime(result[2], "%Y-%m-%d %H:%M:%S.%f")
|
result[2] = datetime.datetime.fromisoformat(result[2])
|
||||||
manager = log.logsManager(config.sqlServer, config.sqlDatabase, config.sqlUsername, config.sqlPassword)
|
manager = log.logsManager(config.sqlServer, config.sqlDatabase, config.sqlUsername, config.sqlPassword)
|
||||||
manager.insertHostLog(result[0], result[1], result[2], result[4], result[5])
|
manager.insertHostLog(result[0], result[1], result[2], result[4], result[5])
|
||||||
ch.basic_ack(delivery_tag=method.delivery_tag)
|
ch.basic_ack(delivery_tag=method.delivery_tag)
|
||||||
|
|
||||||
if result[3] == 'url':
|
if result[3] == 'url':
|
||||||
|
|
||||||
result[2] = datetime.datetime.strptime(result[2], "%Y-%m-%d %H:%M:%S.%f")
|
result[2] = datetime.datetime.fromisoformat(result[2])
|
||||||
manager = log.logsManager(config.sqlServer, config.sqlDatabase, config.sqlUsername, config.sqlPassword)
|
manager = log.logsManager(config.sqlServer, config.sqlDatabase, config.sqlUsername, config.sqlPassword)
|
||||||
manager.insertURLLog(result[0], result[1], result[2], result[4], result[5])
|
manager.insertURLLog(result[0], result[1], result[2], result[4], result[5])
|
||||||
ch.basic_ack(delivery_tag=method.delivery_tag)
|
ch.basic_ack(delivery_tag=method.delivery_tag)
|
||||||
|
|
Loading…
Reference in a new issue