From dcd7e1424f183318b2c5b12cb4010d65740ea0b4 Mon Sep 17 00:00:00 2001 From: Tao Chen Date: Wed, 7 Feb 2024 09:35:51 -0800 Subject: [PATCH] .Net: Fix PlannerInstrumentation log message typo (#4904) ### Motivation and Context There are two typos in the `PlannerInstrumentation` log message templates, which causes confusion. ### Description Fix the typos. ### Contribution Checklist - [ ] The code builds clean without any errors or warnings - [ ] The PR follows the [SK Contribution Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md) and the [pre-submission formatting script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts) raises no violations - [ ] All unit tests pass, and I have added new tests where possible - [ ] I didn't break anyone :smile: Co-authored-by: Chris <66376200+crickman@users.noreply.github.com> Co-authored-by: Gil LaHaye --- .../src/InternalUtilities/planning/PlannerInstrumentation.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dotnet/src/InternalUtilities/planning/PlannerInstrumentation.cs b/dotnet/src/InternalUtilities/planning/PlannerInstrumentation.cs index 4a5403bacef9..3d933aa242a2 100644 --- a/dotnet/src/InternalUtilities/planning/PlannerInstrumentation.cs +++ b/dotnet/src/InternalUtilities/planning/PlannerInstrumentation.cs @@ -204,13 +204,13 @@ private static void LogPlanResult(this ILogger logger, object planResult) [LoggerMessage( EventId = 0, Level = LogLevel.Error, - Message = "Plan creation failed. Error: {Message}")] + Message = "Plan execution failed. Error: {Message}")] static partial void LogInvokePlanError(this ILogger logger, Exception exception, string message); [LoggerMessage( EventId = 0, Level = LogLevel.Information, - Message = "Plan creation duration: {Duration}s.")] + Message = "Plan execution duration: {Duration}s.")] static partial void LogInvokePlanDuration(this ILogger logger, double duration); #pragma warning restore SYSLIB1006 // Multiple logging methods cannot use the same event id within a class