Skip to content

fix: evals logs as debug - #1401

Merged
cristipufu merged 1 commit into
mainfrom
fix/evals_logger_debug
Mar 3, 2026
Merged

cristipufu merged 1 commit into
mainfrom
fix/evals_logger_debug

Conversation

@cristipufu

@cristipufu cristipufu commented Mar 3, 2026 •

Copy link
Copy Markdown
Member

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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)}"
)

Copilot AI Mar 3, 2026

Copy link

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)}"
)

Copilot AI Mar 3, 2026

Copy link

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}"
)

Copilot AI Mar 3, 2026

Copy link

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.
@cristipufu
cristipufu force-pushed the fix/evals_logger_debug branch from bd8d42f to d41ab72 Compare March 3, 2026 17:56
@cristipufu
cristipufu merged commit 2f7b418 into main Mar 3, 2026
98 checks passed
@cristipufu
cristipufu deleted the fix/evals_logger_debug branch March 3, 2026 18:42
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.

3 participants