Skip to content

Commit 9e1ad56

Browse files
author
Maksym Pavlenko
authored
Merge pull request containerd#10152 from zouyee/log
optimize error logs by providing absolute file paths
2 parents 53160fb + 11d8bef commit 9e1ad56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/remotes/docker/config/hosts.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ func loadHostDir(ctx context.Context, hostsDir string) ([]hostConfig, error) {
308308

309309
hosts, err := parseHostsFile(hostsDir, b)
310310
if err != nil {
311-
log.G(ctx).WithError(err).Error("failed to decode hosts.toml")
311+
log.G(ctx).WithError(err).Errorf("failed to decode %s", filepath.Join(hostsDir, "hosts.toml"))
312312
// Fallback to checking certificate files
313313
return loadCertFiles(ctx, hostsDir)
314314
}

0 commit comments

Comments
 (0)