Commit 6f713bdd authored by ale's avatar ale

Remove extraneous log prefix changes

parent 5253979f
Pipeline #8537 passed with stages
in 1 minute and 15 seconds
......@@ -369,9 +369,8 @@ type resticMessage struct {
// Scan the output of 'restic backup' for the snapshot ID. Modifies backup/dataset objects.
func (r *resticRepository) RunBackup(ctx context.Context, shell *Shell, backup *Backup, ds *Dataset, cmd string) error {
logPrefix := fmt.Sprintf("backup=%s dataset=%s", backup.ID, ds.ID)
return active.WithResticStatus(jobs.GetID(ctx), backup, ds, func(progressCh chan *resticStatusMessage) error {
return shell.RunWithStdoutCallback(ctx, cmd, logPrefix, func(line []byte) {
return shell.RunWithStdoutCallback(ctx, cmd, func(line []byte) {
var msg resticMessage
if err := json.Unmarshal(line, &msg); err != nil {
log.Printf("error parsing restic JSON message: %v (%s)", err, line)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment