Skip to content

Commit 28355d2

Browse files
committed
changlog
1 parent 49eac0d commit 28355d2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
([#217](https://github.com/microsoft/ApplicationInsights-Python/pull/217))
1919
- Add Logging configuration to Distro API
2020
([#218](https://github.com/microsoft/ApplicationInsights-Python/pull/218))
21+
- Removing diagnostic logging from its module's logger. Preventing duplicate handlers.
22+
([#225](https://github.com/microsoft/ApplicationInsights-Python/pull/225))
2123

2224
## [1.0.0b8](https://github.com/microsoft/ApplicationInsights-Python/releases/tag/v1.0.0b8) - 2022-09-26
2325

azure-monitor-opentelemetry-distro/azure/monitor/opentelemetry/distro/_diagnostics/_diagnostic_logging.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ def enable(logger: logging.Logger):
7575
if AzureDiagnosticLogging._initialized:
7676
if AzureDiagnosticLogging._f_handler in logger.handlers:
7777
_logger.info(
78-
"Azure diagnostics already enabled for %s logger." % logger.name
78+
"Azure diagnostics already enabled for %s logger."
79+
% logger.name
7980
)
8081
else:
8182
logger.addHandler(AzureDiagnosticLogging._f_handler)

0 commit comments

Comments
 (0)