Skip to content

Commit

Permalink
Log some errors as warnings (#14396)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomponline authored Nov 5, 2024
2 parents bc69c23 + a28082d commit 696cf1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lxd/instance/drivers/driver_lxc.go
Original file line number Diff line number Diff line change
Expand Up @@ -1357,7 +1357,7 @@ func (d *lxc) IdmappedStorage(path string, fstype string) idmap.IdmapStorageType
if bindMount {
err := unix.Statfs(path, buf)
if err != nil {
d.logger.Error("Failed to statfs", logger.Ctx{"path": path, "err": err})
d.logger.Warn("Failed to statfs", logger.Ctx{"path": path, "err": err})
return mode
}
}
Expand Down Expand Up @@ -6980,7 +6980,7 @@ func (d *lxc) FileSFTPConn() (net.Conn, error) {
// Wait for completion.
err = forkfile.Wait()
if err != nil {
d.logger.Error("SFTP server stopped with error", logger.Ctx{"err": err, "stderr": strings.TrimSpace(stderr.String())})
d.logger.Warn("SFTP server stopped with error", logger.Ctx{"err": err, "stderr": strings.TrimSpace(stderr.String())})
return
}
}()
Expand Down

0 comments on commit 696cf1b

Please sign in to comment.