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

Only write verbose worker logs when verbosity is --worker_verbose or higher #66

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

jjudd
Copy link

@jjudd jjudd commented Oct 31, 2024

No description provided.

@jjudd jjudd requested a review from jadenPete October 31, 2024 05:26
// If this is a cancel request, we need to cancel a previously sent WorkRequest
// Arguments and inputs fields on cancel requests "must be empty and should be ignored"
if (request.getCancel()) {
System.err.println(s"Cancellation WorkRequest received for request id: $requestId")
if (isVerbose) {

Choose a reason for hiding this comment

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

Is there any way we can hook this into a logging framework so we don't have to manually check the verbosity every time we log?

Even a helper function would be better.

Copy link
Author

Choose a reason for hiding this comment

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

I'll add a quick function for this. We could write a logger for it, but not sure it's worth doing that unless we start doing this in more places.

We do some logger things in workers, so if I'm ever working on those again, maybe I'll change things here to use a logger.

Choose a reason for hiding this comment

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

Sounds good. Thanks!

@jjudd jjudd merged commit 547a889 into lucid-master Nov 12, 2024
1 check 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.

2 participants