fix: replace print() with logger for consistent logging (#38)

This commit is contained in:
Jason Cat
2026-03-06 20:48:06 +08:00
committed by GitHub
parent 78b3ef77ca
commit 5dd658eb51
@@ -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)