Skip to content

Commit 369f120

Browse files
author
Manikanta Nallagatla
committed
rename little
1 parent bbed14d commit 369f120

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/WebJobs.Script.WebHost/Diagnostics/LinuxContainerEventGenerator.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,11 @@ public override void LogFunctionExecutionEvent(string executionId, string siteNa
156156

157157
public override void LogAzureMonitorDiagnosticLogEvent(LogLevel level, string resourceId, string operationName, string category, string regionName, string properties)
158158
{
159-
if (AzmonitorCategories != null && !AzmonitorCategories.Contains(category))
159+
if (AzmonitorCategories != null // Check if the WEBSITE_FUNCTIONS_AZUREMONITOR_CATEGORIES is set.
160+
&& !AzmonitorCategories.Contains(category))
160161
{
161-
// Skip logging if the category is not in the list of categories to log.
162-
// We set the env variable WEBSITE_FUNCTIONS_AZUREMONITOR_CATEGORIES in legion platform only.
163-
// We check for _azmonitorCategories != null to ensure we dont check azmonitorCategories for all other platform cases.
162+
// Skip logging if the azure monitor category is not in the list of categories to log.
163+
// We check for _azmonitorCategories != null to ensure we dont have change in behavior for all other platform cases.
164164
return;
165165
}
166166
_writeEvent($"{ScriptConstants.LinuxAzureMonitorEventStreamName} {(int)ToEventLevel(level)},{resourceId},{operationName},{category},{regionName},{NormalizeString(properties.Replace("'", string.Empty))},{_containerName},{TenantId},{DateTime.UtcNow.ToString()}");

0 commit comments

Comments
 (0)