Skip to content

Commit

Permalink
incusd/instance/qemu: Reduce logging level
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 388e76a commit 87892d9
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions internal/server/instance/drivers/driver_qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -964,10 +964,7 @@ func (d *qemu) restoreState(monitor *qmp.Monitor) error {
}

go func() {
_, err := io.Copy(pipeWrite, stateConn)
if err != nil {
d.logger.Warn("Failed reading from state connection", logger.Ctx{"err": err})
}
_, _ = io.Copy(pipeWrite, stateConn)

_ = pipeRead.Close()
_ = pipeWrite.Close()
Expand Down Expand Up @@ -6426,8 +6423,8 @@ func (d *qemu) Export(w io.Writer, properties map[string]string, expiration time

// MigrateSend is not currently supported.
func (d *qemu) MigrateSend(args instance.MigrateSendArgs) error {
d.logger.Info("Migration send starting")
defer d.logger.Info("Migration send stopped")
d.logger.Debug("Migration send starting")
defer d.logger.Debug("Migration send stopped")

// Check for stateful support.
if args.Live && util.IsFalseOrEmpty(d.expandedConfig["migration.stateful"]) {
Expand Down Expand Up @@ -7004,8 +7001,8 @@ func (d *qemu) migrateSendLive(pool storagePools.Pool, clusterMoveSourceName str
}

func (d *qemu) MigrateReceive(args instance.MigrateReceiveArgs) error {
d.logger.Info("Migration receive starting")
defer d.logger.Info("Migration receive stopped")
d.logger.Debug("Migration receive starting")
defer d.logger.Debug("Migration receive stopped")

// Wait for essential migration connections before negotiation.
connectionsCtx, cancel := context.WithTimeout(context.Background(), time.Second*10)
Expand Down

0 comments on commit 87892d9

Please sign in to comment.