Address comments
This commit is contained in:
parent
863af7a3e5
commit
7e97d885df
|
@ -821,15 +821,18 @@ def enable_autorotate_for_certs_attached_to_endpoint():
|
||||||
attached to an endpoint but do not have autorotate enabled.
|
attached to an endpoint but do not have autorotate enabled.
|
||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
|
function = f"{__name__}.{sys._getframe().f_code.co_name}"
|
||||||
task_id = None
|
task_id = None
|
||||||
if celery.current_task:
|
if celery.current_task:
|
||||||
task_id = celery.current_task.request.id
|
task_id = celery.current_task.request.id
|
||||||
|
|
||||||
log_data = {
|
log_data = {
|
||||||
"function": f"{__name__}.{sys._getframe().f_code.co_name}",
|
"function": function,
|
||||||
"task_id": task_id,
|
"task_id": task_id,
|
||||||
"message": "Enabling autorotate to eligible certificates",
|
"message": "Enabling autorotate to eligible certificates",
|
||||||
}
|
}
|
||||||
current_app.logger.debug(log_data)
|
current_app.logger.debug(log_data)
|
||||||
|
|
||||||
cli_certificate.automatically_enable_autorotate()
|
cli_certificate.automatically_enable_autorotate()
|
||||||
|
metrics.send(f"{function}.success", "counter", 1)
|
||||||
|
return log_data
|
||||||
|
|
Loading…
Reference in New Issue