mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-03 07:13:33 +00:00
Fix agno logging configuration being broken by reimport (disabling GUI logger)
This commit is contained in:
1 parent
b19a564c9f
commit
4c92934c8a
1 file changed
+5
-2
@@ -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)
|
||||
Reference in new issue
Block a user