mirror of
https://github.com/apple/container.git
synced 2026-10-15 10:39:21 +00:00
Fix the socket relay error handling and log level (#535)
- Downgrades a warning to the debug level in `BidirectionalRelay` because the shutdown syscall isn't supported for certain socket types - Rethrows an error if we can't start a socket relay
This commit is contained in:
1 parent
cb3493b507
commit
36002eed5e
3 files changed
+10
-9
No files matched your search
@@ -182,7 +182,7 @@ public final class BidirectionalRelay: Sendable {
|
||||
)
|
||||
source.cancel()
|
||||
if shutdown(destinationFd, SHUT_WR) != 0 {
|
||||
log?.warning(
|
||||
log?.debug(
|
||||
"failed to shut down writes",
|
||||
metadata: [
|
||||
"errno": "\(errno)",
|
||||
|
||||
Reference in new issue
Block a user