-
Notifications
You must be signed in to change notification settings - Fork 33
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
Conversation
datastore.go
Outdated
b.Warnf(format, args...) | ||
} | ||
|
||
var log = &badgerLog{*logger.Logger("badger")} |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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")} |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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.
This was linked against an old logging interface
fix #89