mirror of
https://github.com/FireRedTeam/FireRed-OpenStoryline.git
synced 2026-09-01 14:57:19 +08:00
fix: replace print() with logger for consistent logging (#38)
This commit is contained in:
@@ -343,8 +343,7 @@ class ToolInterceptor:
|
||||
continue
|
||||
args.setdefault(key, str(value).strip())
|
||||
except Exception as e:
|
||||
print(f"{e}")
|
||||
pass
|
||||
logger.warning(f"Failed to inject TTS config: {e}")
|
||||
return await handler(request)
|
||||
|
||||
@staticmethod
|
||||
@@ -374,6 +373,5 @@ class ToolInterceptor:
|
||||
args["pexels_api_key"] = key
|
||||
|
||||
except Exception as e:
|
||||
print(f"{e}")
|
||||
pass
|
||||
logger.warning(f"Failed to inject pexels API key: {e}")
|
||||
return await handler(request)
|
||||
|
||||
Reference in New Issue
Block a user