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

Fix #5997: avoid log errors during install process. #6001

Closed
wants to merge 1 commit into from

Conversation

zyhfish
Copy link
Contributor

@zyhfish zyhfish commented Mar 20, 2024

Fix #5997: avoid log errors during install process.

{
Logger.Error("[1] Error executing SQL: " + sql + Environment.NewLine + ex.Message);
{
if (!sql.EndsWith("GetDatabaseVersion"))
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we log this as warning or info?

@@ -60,7 +60,11 @@ public UpgradeStatus Status
}
catch (Exception ex)
{
Logger.Error(ex);
if (this.IsInstalled())
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we log this at a warning or info level?

}
}
catch (FileNotFoundException)
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need this at both levels?

Is this an issue of dependencies being requested that should be optional (or required dependencies that aren't available before the install)? Do we need to adjust things so that these missing dependencies aren't requested in the first place?

@mitchelsellers
Copy link
Contributor

We discussed this issue in detail, and although we get the intent, the overall impact to the lack of discovery of possible errors that need debugging we feel that it is better to leave this error message as logged, even though it might be an annoyance.

@zyhfish zyhfish deleted the task/fix-issue-5997 branch May 22, 2024 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Clean install of 09.13.03 has incorrect Newtonsoft.Json bindingRedirect
3 participants