make logging not use f-str, change others to f-str (#22882)
This commit is contained in:
@@ -43,13 +43,11 @@ def process_trace_tasks(file_info):
|
||||
if trace_type:
|
||||
trace_info = trace_type(**trace_info)
|
||||
trace_instance.trace(trace_info)
|
||||
logging.info(f"Processing trace tasks success, app_id: {app_id}")
|
||||
logging.info("Processing trace tasks success, app_id: %s", app_id)
|
||||
except Exception as e:
|
||||
logging.info(
|
||||
f"error:\n\n\n{e}\n\n\n\n",
|
||||
)
|
||||
logging.info("error:\n\n\n%s\n\n\n\n", e)
|
||||
failed_key = f"{OPS_TRACE_FAILED_KEY}_{app_id}"
|
||||
redis_client.incr(failed_key)
|
||||
logging.info(f"Processing trace tasks failed, app_id: {app_id}")
|
||||
logging.info("Processing trace tasks failed, app_id: %s", app_id)
|
||||
finally:
|
||||
storage.delete(file_path)
|
||||
|
Reference in New Issue
Block a user