Skip to content

Commit

Permalink
fix: removed the unexpected tracing message (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
lifeizhou-ap authored and ahau-square committed Nov 6, 2024
1 parent 05d636b commit bfdd2f4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/goose/cli/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def __init__(
self.prompt_session = GoosePromptSession()
self.status_indicator = Status("", spinner="dots")
self.notifier = SessionNotifier(self.status_indicator)
self.tracing = tracing
if not tracing:
logging.getLogger("langfuse").setLevel(logging.ERROR)
else:
Expand All @@ -93,7 +94,8 @@ def __init__(
"You passed --tracing, but a Langfuse object was not found in the current context. "
"Please initialize the local Langfuse server and restart Goose."
)
langfuse_context.configure(enabled=tracing)
if self.tracing:
langfuse_context.configure(enabled=tracing)

profile = load_profile(profile)

Expand Down

0 comments on commit bfdd2f4

Please sign in to comment.