Skip to content

Commit

Permalink
incusd/storage: Reduce logging
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
  • Loading branch information
stgraber committed Jul 27, 2024
1 parent 4b53830 commit c2ec0fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/server/storage/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -4913,7 +4913,7 @@ func (b *backend) migrationIndexHeaderSend(l logger.Logger, indexHeaderVersion u
return nil, fmt.Errorf("Failed negotiating migration options: %w", err)
}

l.Info("Received migration index header response", logger.Ctx{"response": fmt.Sprintf("%+v", infoResp), "version": indexHeaderVersion})
l.Debug("Received migration index header response", logger.Ctx{"response": fmt.Sprintf("%+v", infoResp), "version": indexHeaderVersion})
}

return &infoResp, nil
Expand All @@ -4938,7 +4938,7 @@ func (b *backend) migrationIndexHeaderReceive(l logger.Logger, indexHeaderVersio
return nil, fmt.Errorf("Failed decoding migration index header: %w", err)
}

l.Info("Received migration index header, sending response", logger.Ctx{"version": indexHeaderVersion})
l.Debug("Received migration index header, sending response", logger.Ctx{"version": indexHeaderVersion})

infoResp := localMigration.InfoResponse{StatusCode: http.StatusOK, Refresh: &refresh}
headerJSON, err := json.Marshal(infoResp)
Expand Down

0 comments on commit c2ec0fe

Please sign in to comment.