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

#4201 Errors repeatedly logged for minor configuration issues #7067

Merged
merged 7 commits into from
Nov 9, 2021

Conversation

leventegal-she
Copy link
Contributor

@leventegal-she leventegal-she commented Oct 27, 2021

Fixes #4201

Changed logs to debug as suggested in the ticket

@leventegal-she leventegal-she requested a review from vidi42 October 27, 2021 07:37
@JonasCir
Copy link
Contributor

Do we really want to reduce the log level here? I think it makes the debugging process for the sysadmin harder.
The root cause is that the setup in SORMAS-Docker using sed commands is quite horrible. I already filed a ticket about that (SORMAS-Foundation/SORMAS-Docker#255).

IMHO it makes more sense to fix the deployment than hiding errors that are legit.

@JonasCir
Copy link
Contributor

Alternatively we could just check for empty values and then skip the parsing

Copy link
Contributor

@vidi42 vidi42 left a comment

Choose a reason for hiding this comment

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

I think we should better check and only parse the property values if they are not empty and if they are empty we could add a debug log mentioning this.

For the catch we should still log an error because some values might be set incorrectly and those should be pointed out.

@leventegal-she leventegal-she requested a review from vidi42 November 5, 2021 14:08
@leventegal-she leventegal-she merged commit e072a55 into development Nov 9, 2021
@leventegal-she leventegal-she deleted the 4201_missing-config-debug-log branch November 9, 2021 07:32
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.

Errors repeatedly logged for minor configuration issues
3 participants