make logging not use f-str, change others to f-str (#22882)
This commit is contained in:
parent
570aee5fe6
commit
a189d293f8
164 changed files with 557 additions and 563 deletions
|
|
@ -136,6 +136,6 @@ class OutputModeration(BaseModel):
|
|||
result: ModerationOutputsResult = moderation_factory.moderation_for_outputs(moderation_buffer)
|
||||
return result
|
||||
except Exception as e:
|
||||
logger.exception(f"Moderation Output error, app_id: {app_id}")
|
||||
logger.exception("Moderation Output error, app_id: %s", app_id)
|
||||
|
||||
return None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue