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

switch per-backup/restore logs to use logrus #123

Merged
merged 1 commit into from
Oct 10, 2017

Conversation

skriss
Copy link
Contributor

@skriss skriss commented Oct 5, 2017

Fixes #114
Fixes #115

(to be merged after #122)

@skriss skriss added this to the v0.5.0 milestone Oct 5, 2017
@@ -133,13 +133,11 @@ func getNamespaceIncludesExcludes(backup *api.Backup) *collections.IncludesExclu
}

type logger struct {

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?

Copy link
Contributor Author

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.

// 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...)

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?

@davecheney
Copy link

davecheney commented Oct 6, 2017 via email

@ncdc ncdc mentioned this pull request Oct 10, 2017
@skriss skriss force-pushed the switch-backup-restore-log-impl branch from f6f2789 to d6bdaf3 Compare October 10, 2017 20:55
@skriss skriss changed the title [WIP] switch per-backup/restore logs to use logrus switch per-backup/restore logs to use logrus Oct 10, 2017
@skriss skriss force-pushed the switch-backup-restore-log-impl branch from d6bdaf3 to fa427eb Compare October 10, 2017 21:11
@ncdc ncdc merged commit 2abeae9 into vmware-tanzu:master Oct 10, 2017
@skriss skriss deleted the switch-backup-restore-log-impl branch October 10, 2017 21:19
jmontleon pushed a commit to jmontleon/velero that referenced this pull request Nov 9, 2021
Use numeric user for velero-restic-restore-helper
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.

3 participants