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 duplicate logging #105

Merged

Conversation

VitaliStupin
Copy link
Contributor

Currently check handler is WatchedFileHandler always fails and a new handler is added every time _setup_logger is called.

For example corrector logs every line three times.

A fix for opendata was added with pull request #14

This commit makes the same change in all the other services.

Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
100.0% 100.0% Duplication

@raits
Copy link
Contributor

raits commented Nov 23, 2023

Hello @VitaliStupin,

Thank you for your contribution. We will take a look at it as soon as we can.

Currently check `handler is WatchedFileHandler` always fails and a new handler is added every time _setup_logger is called.

For example corrector logs every line three times.

A fix for opendata was added with pull request nordic-institute#14

This commit makes the same change in all the other services.
@melbeltagy melbeltagy force-pushed the logger-handler-fix branch from 04376ac to 9f0c807 Compare May 20, 2024 21:14
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
21.4% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

Copy link
Contributor

@melbeltagy melbeltagy left a comment

Choose a reason for hiding this comment

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

Thank you @VitaliStupin .

@melbeltagy melbeltagy merged commit a3d181a into nordic-institute:develop May 21, 2024
6 of 7 checks passed
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.

3 participants