Skip to content

Commit

Permalink
First must evaluate if it's Otel Azure Monitor. Besides, there was a …
Browse files Browse the repository at this point in the history
…missing return in code.
  • Loading branch information
sjuarezgx committed Oct 29, 2023
1 parent 88c694e commit 57bb4d7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ public static ILoggerFactory GetLogFactory()
{
if (Config.GetValueOf(LOG_OUTPUT, out string logProvider))
{
if (logProvider == AZURE_APPLICATION_INSIGHTS_LOG)
if (logProvider == OTEL_AZUREMONITOR_EXPORTER)
return AzureAppInsightsLogProvider.GetAzureMonitorLoggerFactory();
else if (logProvider == AZURE_APPLICATION_INSIGHTS_LOG)
return AzureAppInsightsLogProvider.GetLoggerFactory();
else if (logProvider == OTEL_AZUREMONITOR_EXPORTER)
AzureAppInsightsLogProvider.GetAzureMonitorLoggerFactory();
}
return null;
}
Expand Down

0 comments on commit 57bb4d7

Please sign in to comment.