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

ENH: Reduce warning logs during DICOM import #842

Merged

Conversation

lassoan
Copy link
Member

@lassoan lassoan commented Nov 20, 2018

When ctkDICOMIndexer::addFile was called with non-empty destinationDirectoryName (to indicate that file should be copied) then "Ignoring destinationDirectoryName parameter, just taking it as indication we should copy!" warning message was logged for each file. This flooded the logs and had noticeable performance impact.

Since this warning is for developers, it is not necessary to log it for each file during runtime, but the behavior is documented instead in the header file.

When ctkDICOMIndexer::addFile was called with non-empty destinationDirectoryName (to indicate that file should be copied) then "Ignoring destinationDirectoryName parameter, just taking it as indication we should copy!" warning message was logged for each file. This flooded the logs and had noticeable performance impact.

Since this warning is for developers, it is not necessary to log it for each file during runtime, but the behavior is documented instead in the header file.
@pieper
Copy link
Member

pieper commented Nov 20, 2018

LGTM - thanks!

@pieper pieper merged commit 6cd82aa into commontk:master Nov 20, 2018
@lassoan lassoan deleted the reduce-warning-in-dicom-indexer-addfile branch November 20, 2018 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants