(err error)
| 22 | ) |
| 23 | |
| 24 | func syscallErrorAttributes(err error) []any { |
| 25 | if matched := (syscall.Errno)(0); errors.As(err, &matched) { |
| 26 | // syscall.Errono do not contain any sensitive information and are safe to render. |
| 27 | return []any{ |
| 28 | "error", matched.Error(), |
| 29 | "timeout", matched.Timeout(), |
| 30 | } |
| 31 | } |
| 32 | return nil |
| 33 | } |