-
-
Notifications
You must be signed in to change notification settings - Fork 322
Fix executor passthrough logging #2659
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
Conversation
i didnt know you had to do this
One last thing: I think it would be a good idea to give the logged message a prefix, so we know it's from the worker. Maybe something like |
I already added [Executor] to it |
match_obj = re.match(SANIC_LOG_REGEX, stripped_line) | ||
if match_obj is not None: | ||
log_level, message = match_obj.groups() | ||
message = f"[Executor] {message.strip()}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here
Gonna merge this since I need it for fixing #2646 and I don't think there's anything left to do. If you wanna change the message, just make a followup PR or reply to this and I'll do it. |
The biggest thing I dislike about this is the amount of code that now has to run per-log. This could wind up being a minor performance impact if we have a lot of logging