Disabling diagnostics for diagnostic module. Added duplicate handler test by jeremydvoss · Pull Request #225 · microsoft/ApplicationInsights-Python · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
)
from azure.monitor.opentelemetry.distro._version import VERSION

_OPENTELEMETRY_DIAGNOSTIC_LOGGER_NAME = "opentelemetry"
_DIAGNOSTIC_LOGGER_FILE_NAME = "applicationinsights-extension.log"
_SITE_NAME = _env_var_or_default("WEBSITE_SITE_NAME")
_SUBSCRIPTION_ID_ENV_VAR = _env_var_or_default("WEBSITE_OWNER_NAME")
Expand Down Expand Up @@ -68,7 +67,6 @@ def _initialize():
fmt=format, datefmt="%Y-%m-%dT%H:%M:%S"
)
AzureDiagnosticLogging._f_handler.setFormatter(formatter)
_logger.addHandler(AzureDiagnosticLogging._f_handler)
AzureDiagnosticLogging._initialized = True
_logger.info("Initialized Azure Diagnostic Logger.")

Expand Down