Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent an unhandled SecurityException in DatadogLogging #613

Merged
merged 4 commits into from
Jan 23, 2020

Conversation

zacharycmontoya
Copy link
Contributor

Move initialization of the WindowsDefaultDirectory field in DatadogLogging to the constructor to catch possible SecurityExceptions.

@DataDog/apm-dotnet

…gLogging to the constructor to catch possible SecurityExceptions.
…n DatadogLogging to the constructor to catch possible SecurityExceptions."

This reverts commit 0b2cbe4.
colin-higgins
colin-higgins previously approved these changes Jan 23, 2020
Copy link
Member

@colin-higgins colin-higgins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lucaspimentel lucaspimentel added the area:tracer The core tracer library (Datadog.Trace, does not include OpenTracing, native code, or integrations) label Jan 23, 2020
@lucaspimentel
Copy link
Member

I know this isn't part of the code you modified, but would you mind moving the constants "DD_MAX_LOGFILE_SIZE" and "DD_TRACE_LOG_PATH" into ConfigurationKeys.cs? It's a small change and it makes finding setting names much easier. Thanks!

(They should probably use TracerSettings, but that's a bigger change for another day.)

…riable in DatadogLogging to the constructor to catch possible SecurityExceptions.""

This reverts commit 9bc3728.
@zacharycmontoya zacharycmontoya merged commit d8096d1 into master Jan 23, 2020
@zacharycmontoya zacharycmontoya deleted the zach/bug-fix/logging-fileio-securityexception branch January 23, 2020 18:47
MikeGoldsmith pushed a commit to lightstep/ls-trace-dotnet that referenced this pull request Mar 20, 2020
Move initialization of the WindowsDefaultDirectory variable in DatadogLogging to the constructor to catch possible SecurityExceptions. Also, add DD_MAX_LOGFILE_SIZE and DD_TRACE_LOG_PATH as ConfigurationKeys constants.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:tracer The core tracer library (Datadog.Trace, does not include OpenTracing, native code, or integrations) priority:high type:bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants