Skip to content

Disable extended logging in DiagnosticsObserversInitializer by default #368

@dakanev-msft

Description

@dakanev-msft

By default the DiagnosticsObserversInitializer logs extended details when the HttpClient receives an error response. In particular cases the log entry can contain the payload of the HTTP request message including Authorization and custom header values. This is a concern from privacy and security perspective as the header values might contain personally identifiable information and non encrypted access tokens.

Extended logging information should be off by default and should be explicitly enabled so that developers are in control of what is being logged.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions