Skip to content

fix: evals logs as debug#1401

Open
cristipufu wants to merge 1 commit intomainfrom
fix/evals_logger_debug
Open

fix: evals logs as debug#1401
cristipufu wants to merge 1 commit intomainfrom
fix/evals_logger_debug

Conversation

@cristipufu
Copy link
Member

@cristipufu cristipufu commented Mar 3, 2026

Description

This PR adjusts the evaluation runtime’s logging verbosity so that eval lifecycle and diagnostic logs no longer appear at INFO level by default.

@cristipufu cristipufu self-assigned this Mar 3, 2026
@github-actions github-actions bot added test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-llamaindex Triggers tests in the uipath-llamaindex-python repository labels Mar 3, 2026
@cristipufu cristipufu requested a review from radu-mocanu March 3, 2026 10:22
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts the evaluation runtime’s logging verbosity so that eval lifecycle and diagnostic logs no longer appear at INFO level by default.

Changes:

  • Downgraded multiple logger.info(...) statements in the eval runtime to logger.debug(...).
  • Reduced default log noise for eval execution start/resume/suspend and trigger pass-through diagnostics.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 419 to 422
for i, trigger in enumerate(all_triggers, 1):
logger.info(
logger.debug(
f"EVAL RUNTIME: Pass-through trigger {i}: {trigger.model_dump(by_alias=True)}"
)
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These debug logs call trigger.model_dump(by_alias=True) inside an f-string. Even when debug logging is disabled, the f-string (and model_dump) will still be evaluated, which can add noticeable overhead if there are many triggers. Consider guarding this block with logger.isEnabledFor(logging.DEBUG) (or similar) so the model_dump only happens when debug logs will actually be emitted.

Copilot uses AI. Check for mistakes.
Comment on lines +603 to 605
logger.debug(
f"EVAL RUNTIME: Trigger {i}: {trigger.model_dump(by_alias=True)}"
)
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same issue here: trigger.model_dump(by_alias=True) is computed unconditionally inside an f-string, even if debug logging is off. Please gate the model_dump behind a debug-level check to avoid unnecessary serialization work in normal runs.

Suggested change
logger.debug(
f"EVAL RUNTIME: Trigger {i}: {trigger.model_dump(by_alias=True)}"
)
if logger.isEnabledFor(logging.DEBUG):
trigger_dump = trigger.model_dump(by_alias=True)
logger.debug(
"EVAL RUNTIME: Trigger %s: %s",
i,
trigger_dump,
)

Copilot uses AI. Check for mistakes.
Comment on lines +537 to 542
logger.debug(
f"DEBUG: Agent execution result status: {agent_execution_output.result.status}"
)
logger.info(
logger.debug(
f"DEBUG: Agent execution result trigger: {agent_execution_output.result.trigger}"
)
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that these are emitted at debug level, the message prefix "DEBUG:" is redundant and makes log filtering/grepping noisier. Consider removing the "DEBUG:" prefix from these messages and keeping the rest of the context in the log text.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-llamaindex Triggers tests in the uipath-llamaindex-python repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants