-
Notifications
You must be signed in to change notification settings - Fork 64
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
fix: Set Profiler logger to initialized when configuration load fails #3015
Conversation
… the file is created. Fixes #3014
chore: Update Profiler NuGet Package Reference to v10.37.0.12. Co-authored-by: tippmar-nr <120425148+tippmar-nr@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🥇
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See the comment about the logger not getting initialized if console logging is enabled.
chore: Update Profiler NuGet Package Reference to v10.37.0.14. Co-authored-by: tippmar-nr <120425148+tippmar-nr@users.noreply.github.com>
chore: Update Profiler NuGet Package Reference to v10.37.0.16. Co-authored-by: tippmar-nr <120425148+tippmar-nr@users.noreply.github.com>
…elic/newrelic-dotnet-agent into fix/empty-profiler-log-file
chore: Update Profiler NuGet Package Reference to v10.37.0.19. Co-authored-by: tippmar-nr <120425148+tippmar-nr@users.noreply.github.com>
…uired.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3015 +/- ##
=======================================
Coverage 82.11% 82.11%
=======================================
Files 476 476
Lines 30536 30536
Branches 3416 3416
=======================================
Hits 25075 25075
Misses 4661 4661
Partials 800 800
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
BEGIN_COMMIT_OVERRIDE
fix: Set Profiler logger to initialized when configuration load fails. (#3015)
END_COMMIT_OVERRIDE
The profiler log file wasn't being set as "initialized" until after the configuration was successfully loaded. This prevented errors that occurred during configuration load from being written to the log file, with the symptom being a profiler log with no content.
This fix sets the logger to "initialized" just before the second attempt to load the configuration, ensuring that the exception thrown during that attempt gets logged.
Sample output:
Fixes #3014