Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

Only log internal errors on publish, move others to debug level #1330

Merged
merged 1 commit into from
Feb 3, 2021

Conversation

sethvargo
Copy link
Member

There's a lot of "errors" in our logs that are actually user error (e.g. invalid report transition type). This moves user errors to debug level and only logs internal server errors.

Release Note

Only log internal errors on publish, move others to debug level

@google-oss-robot google-oss-robot added the approved Auto: added by prow when enough reviewers approve. label Feb 3, 2021
@google-cla google-cla bot added the cla: yes Auto: added by CLA bot when all committers have signed a CLA. label Feb 3, 2021
@google-oss-robot google-oss-robot added the size/XS Auto: extra small number of changes. label Feb 3, 2021
@@ -388,8 +388,9 @@ func (h *PublishHandler) process(ctx context.Context, data *verifyapi.Publish, p
errorMessage = http.StatusText(http.StatusInternalServerError)
errorCode = verifyapi.ErrorInternalError
metric = "publish-db-write-error"
logger.Errorw("publish error", "error", logMessage)
Copy link

Choose a reason for hiding this comment

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

[errorw-bot] reported by reviewdog 🐶
logger.Errorw("publish error", "error", logMessage)

@google-oss-robot google-oss-robot added the lgtm Auto: added by prown with a reviewer LGTMs label Feb 3, 2021
@google-oss-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sethvargo, whaught

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@google-oss-robot google-oss-robot merged commit 2008849 into main Feb 3, 2021
@google-oss-robot google-oss-robot deleted the sethvargo/debug branch February 3, 2021 15:05
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Auto: added by prow when enough reviewers approve. cla: yes Auto: added by CLA bot when all committers have signed a CLA. lgtm Auto: added by prown with a reviewer LGTMs size/XS Auto: extra small number of changes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants