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

Introduce verbose flag to disable debug statement leading to large log files. #80

Merged
merged 4 commits into from
Aug 5, 2019

Conversation

riga
Copy link
Member

@riga riga commented Aug 2, 2019

This is a trivial PR that comments two debug outputs that lead to overly large log files (~O(10MB) when creating ~O(100) events with 5 showers each).

Using the MessageLogger would be the optimal solution, but this little adjustment is already helpful for now.

@riga riga requested a review from clelange August 2, 2019 13:10
@clelange
Copy link
Contributor

clelange commented Aug 2, 2019

I would prefer to have a flag to disable the printout (default should be to print) instead of just turning it off since this warning (see #63) can potentially lead to wrong results

@riga
Copy link
Member Author

riga commented Aug 2, 2019

True. I will add some debug flag as an option to the EDAnalyzer.

riga added 2 commits August 5, 2019 15:40
Conflicts:
	HGCalAnalysis/plugins/HGCalAnalysis.cc
@riga
Copy link
Member Author

riga commented Aug 5, 2019

I added the flag and only used it to toggle the debug line I was referring to initially, as the other cout's require some cleanup.

Also, the producer has no fillDescriptions or *_cfi.py, so I will open a PR to the prodtools to add the flag there as well.

Copy link
Contributor

@clelange clelange left a comment

Choose a reason for hiding this comment

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

Thanks, I think the flag needs to be added to the example configuration as well?

@clelange clelange changed the title Comment debug statement leading to large log files. Introduce verbose flag to disable debug statement leading to large log files. Aug 5, 2019
@clelange clelange merged commit ce199b6 into CMS-HGCAL:master Aug 5, 2019
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.

2 participants