Skip to content

Logging: reduce verbosity #9107

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

Merged
merged 2 commits into from
Apr 13, 2022
Merged

Logging: reduce verbosity #9107

merged 2 commits into from
Apr 13, 2022

Conversation

humitos
Copy link
Member

@humitos humitos commented Apr 13, 2022

Reduce verbosity for some specific cases. Each particular case is explained in the commit message.

humitos added 2 commits April 13, 2022 15:09
In these cases, we are logging a warning message just to know that we weren't
able to clone the respository. However, this is a user error in most cases it's
because it's a private repository asking for user input.

I'm keeping the log as warning, but removing the `exc_info` since it only adds
noise currently.
We don't need to log this as an exception because most of the times this happens
due a container that exited because memory limit or build timeout.

We could inspect the message to make it 100% accurate, but I think it's not
required. We haven't had problems with Docker in a long time. I suppose we will
be fine here.

In any case, this is only to kill the container. In the worst scenario, it will
just keep some zombie containers in the instance, which will be killed on scale
in anyways.
@humitos humitos requested a review from a team as a code owner April 13, 2022 13:20
Copy link
Member

@ericholscher ericholscher left a comment

Choose a reason for hiding this comment

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

Changes make sense & the commit messages are good. I wish GH had a better way to review the commit msgs with the commits.

@agjohnson agjohnson merged commit 853f3fc into main Apr 13, 2022
@agjohnson agjohnson deleted the humitos/logging-improvement branch April 13, 2022 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants