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

Use current go-log #89

Merged
merged 2 commits into from
Apr 24, 2020
Merged

Use current go-log #89

merged 2 commits into from
Apr 24, 2020

Conversation

willscott
Copy link
Contributor

@willscott willscott commented Apr 24, 2020

This was linked against an old logging interface

fix #89

datastore.go Outdated
b.Warnf(format, args...)
}

var log = &badgerLog{*logger.Logger("badger")}
Copy link
Member

@Stebalien Stebalien Apr 24, 2020

Choose a reason for hiding this comment

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

This is annoying... maybe we should just revert the change we made to go-log and add Warning* functions for backwards compatibility.

Copy link
Member

Choose a reason for hiding this comment

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

But we can do that later.

datastore.go Outdated
b.Warnf(format, args...)
}

var log = &badgerLog{*logger.Logger("badger")}
Copy link
Member

Choose a reason for hiding this comment

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

But we can do that later.

goprocess "github.com/jbenet/goprocess"
)

var log = logger.Logger("badger")
type badgerLog struct {
Copy link
Member

Choose a reason for hiding this comment

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

Let's add a comment explaining why we're doing this.

Also, we might as well only wrap the logger when opening the datastore.

@willscott willscott merged commit d962b63 into master Apr 24, 2020
@willscott willscott deleted the fix/logcompat branch April 24, 2020 23:26
@aschmahmann aschmahmann mentioned this pull request Feb 18, 2021
73 tasks
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.

2 participants