Fix agno logging configuration being broken by reimport (disabling GUI logger)

This commit is contained in:
Dominik Jain committed 2025-04-06 18:04:41 +02:00
1 parent b19a564c9f
commit 4c92934c8a
1 file changed
+5 -2
+5 -2
View File
@@ -9,7 +9,10 @@ from serena.agno import SerenaAgnoAgentProvider
mark_used(Gemini, Claude)
logging.configure(level=logging.INFO)
# initialize logging (Note: since this module is reimported by serve_playground_app and the logging configuration
# is extended by SerenaAgentProvider, we must handle this here conditionally)
if __name__ == "__main__":
logging.configure(level=logging.INFO)
# Define the model to use (see Agno documentation for supported models; these are just examples)
model = Claude(id="claude-3-7-sonnet-20250219")
@@ -18,4 +21,4 @@ model = Claude(id="claude-3-7-sonnet-20250219")
app = Playground(agents=[SerenaAgnoAgentProvider.get_agent(model)]).get_app()
if __name__ == "__main__":
serve_playground_app("agno_agent:app", reload=False)
serve_playground_app("agno_agent:app", reload=False, log_config=None)