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

clair: fix initialization error logging #1210

Merged
merged 1 commit into from Mar 23, 2021
Merged

Conversation

hdonnay
Copy link
Member

@hdonnay hdonnay commented Mar 22, 2021

The initialization reorganization inadvertently shuffled things such
that initialization errors didn't tear down the errgroup and collect the
returned error, so any error was logged as "canceled context."

Fixes PROJQUAY-1760.

Signed-off-by: Hank Donnay hdonnay@redhat.com

Copy link
Contributor

@ldelossa ldelossa left a comment

Choose a reason for hiding this comment

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

Just a nit on the "good bye" log message - not sure it serves a usable purpose or not.

}
zlog.Error(ctx).Err(err).Msg("good bye")
Copy link
Contributor

Choose a reason for hiding this comment

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

needed?

The initialization reorganization inadvertently shuffled things such
that initialization errors didn't tear down the errgroup and collect the
returned error, so any error was logged as "canceled context."

Fixes PROJQUAY-1760.

Signed-off-by: Hank Donnay <hdonnay@redhat.com>
@hdonnay hdonnay merged commit ecd8999 into quay:main Mar 23, 2021
@hdonnay hdonnay deleted the log-init-fail branch March 23, 2021 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants