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

feat: add detailed logs for special customized logs #1408

Merged
merged 1 commit into from
May 27, 2024

Conversation

annielz
Copy link
Collaborator

@annielz annielz commented May 27, 2024

Description

Add detailed logs including bucket_name, obejct_name etc. to 4 kinds of special logs that does not have context.

Rationale

There are 4 special kinds of logs that need to record the detail, therefore had to register the log in gfsperrors at the time of invocation. These logs does not have context come with them, making debug difficult. Additional logs about bucket name and object names can provide more details.

Example

original:
err = ErrConsensusWithDetail("failed to get object info from consensus, error: " + err.Error())

updated:
err = ErrConsensusWithDetail("failed to get object info from consensus, object_name: " +objectInfo.objectName + ", bucket_name: " + objectInfo.bucketName + ", error: " + err.Error())

Changes

Notable changes:

  • adding more logs to gater module

Potential Impacts

@annielz annielz changed the title feat: add missed logs for special customized logs feat: add detailed logs for special customized logs May 27, 2024
@annielz annielz requested a review from BarryTong65 May 27, 2024 08:16
@annielz annielz merged commit 17dba9c into develop May 27, 2024
11 checks passed
@annielz annielz deleted the feat-add-missed-logs branch May 27, 2024 09:50
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.

4 participants