Skip to content

Switching couts to streamlogs#28

Merged
madbaron merged 2 commits intoMuonColliderSoft:mainfrom
madbaron:silence_couts
Dec 9, 2024
Merged

Switching couts to streamlogs#28
madbaron merged 2 commits intoMuonColliderSoft:mainfrom
madbaron:silence_couts

Conversation

@madbaron
Copy link
Copy Markdown
Contributor

@madbaron madbaron commented Dec 4, 2024

This PR silences a couple of couts, moving to streamlogs

@madbaron madbaron requested a review from pandreetto December 4, 2024 14:16
@madbaron
Copy link
Copy Markdown
Contributor Author

madbaron commented Dec 4, 2024

This should be a trivial change, but @pandreetto could you take a look and sign off if you're happy?

@madbaron
Copy link
Copy Markdown
Contributor Author

madbaron commented Dec 5, 2024

Adding a couple more reviewers to help move this along

Comment thread src/Helpers.cxx Outdated
}
else{
std::cout << "Failed propagation! " << std::endl;
streamlog_out(MESSAGE) << "Failed propagation! " << std::endl;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Is MESSAGE the correct level here? Resp. how often does this happen? Simply from the message content I would have said that this sounds like some non-fatal but also not too common occurrence and that WARNING might be more appropriate? But I don't know enough of the details.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Our events are dominated by fake seeds from BIB, so we would get this message a few thousand times per event

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Right, in that case DEBUG might be the better option since you probably don't want to produce GBs of logfiles. (However in that case it should be pointed out that the possibility of turning that on at runtime depends on how Marlin was built, so it might not be easily possible to make these messages appear).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done!

@madbaron madbaron merged commit d045c6d into MuonColliderSoft:main Dec 9, 2024
@madbaron madbaron deleted the silence_couts branch December 9, 2024 12:42
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