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

Log some errors as warnings #14396

Merged
merged 2 commits into from
Nov 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading