File tree 2 files changed +4
-1
lines changed
azure-monitor-opentelemetry-distro/azure/monitor/opentelemetry/distro/_diagnostics
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 18
18
([ #217 ] ( https://github.com/microsoft/ApplicationInsights-Python/pull/217 ) )
19
19
- Add Logging configuration to Distro API
20
20
([ #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 ) )
21
23
22
24
## [ 1.0.0b8] ( https://github.com/microsoft/ApplicationInsights-Python/releases/tag/v1.0.0b8 ) - 2022-09-26
23
25
Original file line number Diff line number Diff line change @@ -75,7 +75,8 @@ def enable(logger: logging.Logger):
75
75
if AzureDiagnosticLogging ._initialized :
76
76
if AzureDiagnosticLogging ._f_handler in logger .handlers :
77
77
_logger .info (
78
- "Azure diagnostics already enabled for %s logger." % logger .name
78
+ "Azure diagnostics already enabled for %s logger."
79
+ % logger .name
79
80
)
80
81
else :
81
82
logger .addHandler (AzureDiagnosticLogging ._f_handler )
You can’t perform that action at this time.
0 commit comments