mirror of
https://github.com/qdm12/gluetun.git
synced 2026-05-09 20:29:23 +02:00
chore(healthcheck): log one error per line on failure for readability
This commit is contained in:
@@ -262,7 +262,7 @@ func withRetries(ctx context.Context, tryTimeouts []time.Duration,
|
|||||||
for i, err := range errs {
|
for i, err := range errs {
|
||||||
errStrings[i] = fmt.Sprintf("attempt %d (%dms): %s", i+1, err.durationMS, err.err)
|
errStrings[i] = fmt.Sprintf("attempt %d (%dms): %s", i+1, err.durationMS, err.err)
|
||||||
}
|
}
|
||||||
return fmt.Errorf("%w: %s", ErrAllCheckTriesFailed, strings.Join(errStrings, ", "))
|
return fmt.Errorf("%w:\n\t%s", ErrAllCheckTriesFailed, strings.Join(errStrings, "\n\t"))
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Checker) startupCheck(ctx context.Context) error {
|
func (c *Checker) startupCheck(ctx context.Context) error {
|
||||||
|
|||||||
Reference in New Issue
Block a user