Skip to content
Snippets Groups Projects
Commit 07e06bc8 authored by Eesaan Atluri's avatar Eesaan Atluri
Browse files

Change the table name to represent account req

parent be566e13
No related branches found
No related tags found
6 merge requests!147Merge previous default branch feat-cod-rmq into main,!85kill nginx process running under user from login node,!51Fix acct create wait,!39WIP:Feat cod rmq,!31Feat add user reg logger,!38WIP: Feat cod rmq
......@@ -20,14 +20,14 @@ logger = rc_util.get_logger()
# Open registry table in DB
db = dataset.connect('sqlite:///reg_logger.db')
table = db['registry']
account_req_table = db['registry']
# Define registration logger callback
def log_registration(ch, method, properties, body):
account_req = json.loads(body)
table.insert(account_req)
account_req['req_time'] = datetime.now(),
account_req_table.insert(account_req)
logger.info("logged account request for %s", account_req['username'])
ch.basic_ack(delivery_tag=method.delivery_tag)
......
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