Skip to content
Snippets Groups Projects
Commit 190a36a1 authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

Fix syntax for request time

parent 70353200
No related branches found
No related tags found
3 merge requests!147Merge previous default branch feat-cod-rmq into main,!94WIP: Merge feat_prod_rmq with feat_cod_rmq,!95Fix user reg logger
...@@ -26,7 +26,7 @@ account_req_table = db["registry"] ...@@ -26,7 +26,7 @@ account_req_table = db["registry"]
def log_registration(ch, method, properties, body): def log_registration(ch, method, properties, body):
account_req = json.loads(body) account_req = json.loads(body)
account_req["req_time"] = (datetime.now(),) account_req["req_time"] = datetime.now()
account_req_table.insert(account_req) account_req_table.insert(account_req)
logger.info("logged account request for %s", account_req["username"]) logger.info("logged account request for %s", account_req["username"])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment