-
-
Notifications
You must be signed in to change notification settings - Fork 67
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
Avoid Exceptions when AppConfigPath does not exist #1218
Avoid Exceptions when AppConfigPath does not exist #1218
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1218 +/- ##
====================================
- Coverage 82% 82% -1%
====================================
Files 196 196
Lines 3845 3840 -5
Branches 425 426 +1
====================================
- Hits 3164 3159 -5
Misses 516 516
Partials 165 165
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@@ -115,13 +113,6 @@ private async Task LoadNewAppContextAsync(IHomeAssistantConnection haConnection, | |||
var appModel = serviceProvider.GetService<IAppModel>(); | |||
if (appModel == null) return; | |||
|
|||
// this logging is a bit weird in this class | |||
if (!string.IsNullOrEmpty(locationSettings.Value.ApplicationConfigurationFolder)) |
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.
I think this could be a good option to have as a debug log rather than default to be able to track down configuration issues. It is not as important when running it through a container but in other scenarios it can.
|
||
public IReadOnlyCollection<SyntaxTree> GetSyntaxTrees() | ||
{ | ||
logger.LogDebug("Loading applications from folder {Path}", _settings.ApplicationConfigurationFolder); |
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.
Ohh never mind the logging comment, you moved it here instead. Yea that is better!
Breaking change
Proposed change
Type of change
Additional information
Checklist
If user exposed functionality or configuration are added/changed: