Skip to content

Commit

Permalink
Reverting back accidental change
Browse files Browse the repository at this point in the history
  • Loading branch information
singankit committed Jun 27, 2024
1 parent 4d0dcbd commit 775553f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ def wrapper(*args, **kwargs):
"evaluator_config": evaluator_config,
}

with ((log_activity(get_telemetry_logger(), "pf.evals.evaluate", activity_type=ActivityType.PUBLICAPI,
user_agent=USER_AGENT, custom_dimensions=custom_dimensions))):
with log_activity(get_telemetry_logger(), "pf.evals.evaluate", activity_type=ActivityType.PUBLICAPI,
user_agent=USER_AGENT, custom_dimensions=custom_dimensions):
result = func(*args, **kwargs)

try:
Expand Down
2 changes: 1 addition & 1 deletion src/promptflow-evals/promptflow/evals/evaluate/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def _log_metrics_and_instance_results(
metrics, instance_results, trace_destination, run, evaluation_name,
) -> str:
if trace_destination is None:
LOGGER.debug("Unable to log traces as trace destination was not defined.")
LOGGER.error("Unable to log traces as trace destination was not defined.")
return None

azure_pf_client, ws_triad = _azure_pf_client_and_triad(trace_destination)
Expand Down

0 comments on commit 775553f

Please sign in to comment.