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

chore: isTruncated should be a debug log #606

Merged
merged 1 commit into from
Aug 27, 2024
Merged

Conversation

shubhammehra4
Copy link
Contributor

@shubhammehra4 shubhammehra4 commented Aug 27, 2024

Description

Manager is truncated: ... should be a debug log instead of Info

Linear Ticket

Resolves PRO-3247

Security

  • The code changed/added as part of this pull request won't create any security issues with how the software is being used.

@atzoum atzoum merged commit 075f014 into main Aug 27, 2024
15 checks passed
@atzoum atzoum deleted the chore.fileManagerDebugLog branch August 27, 2024 10:49
@@ -290,7 +290,7 @@ type digitalOceanListSession struct {
func (l *digitalOceanListSession) Next() (fileObjects []*FileInfo, err error) {
manager := l.manager
if !l.isTruncated {
manager.logger.Infof("Manager is truncated: %v so returning here", l.isTruncated)
manager.logger.Debugf("Manager is truncated: %v so returning here", l.isTruncated)
Copy link
Collaborator

Choose a reason for hiding this comment

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

When possible we should try to use the structured non-sugared logger, i.e. manager.logger.Debugn.

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