-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
switch per-backup/restore logs to use logrus #123
switch per-backup/restore logs to use logrus #123
Conversation
pkg/backup/backup.go
Outdated
@@ -133,13 +133,11 @@ func getNamespaceIncludesExcludes(backup *api.Backup) *collections.IncludesExclu | |||
} | |||
|
|||
type logger 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.
Does this provide much value? Why not just use the logrus logger directly?
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.
@davecheney no, was just taking the smallest possible step towards logrus here. Plan is to get rid of this intermediate layer.
pkg/restore/restore.go
Outdated
// TODO use a real logger that supports writing to files | ||
now := time.Now().Format(time.RFC3339) | ||
fmt.Fprintf(l.w, now+" "+msg+"\n", args...) | ||
l.impl.Infof(msg, args...) |
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.
same question as above; is there value in adding an abstraction above logrus?
SGTM. Make it so.
…On Fri, Oct 6, 2017 at 9:58 AM, Steve Kriss ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In pkg/backup/backup.go
<#123 (comment)>:
> @@ -133,13 +133,11 @@ func getNamespaceIncludesExcludes(backup *api.Backup) *collections.IncludesExclu
}
type logger struct {
@davecheney <https://github.com/davecheney> no, was just taking the
smallest possible step towards logrus here. Plan is to get rid of this
intermediate layer.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#123 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAAcA5EDXt_pro_RzBI1_kZAHb3dB7hYks5spZdqgaJpZM4Pv12x>
.
|
f6f2789
to
d6bdaf3
Compare
Signed-off-by: Steve Kriss <[email protected]>
d6bdaf3
to
fa427eb
Compare
Use numeric user for velero-restic-restore-helper
Fixes #114
Fixes #115
(to be merged after #122)