Merge pull request #10152 from zouyee/log
optimize error logs by providing absolute file paths
This commit is contained in:
commit
9e1ad56b41
@ -308,7 +308,7 @@ func loadHostDir(ctx context.Context, hostsDir string) ([]hostConfig, error) {
|
|||||||
|
|
||||||
hosts, err := parseHostsFile(hostsDir, b)
|
hosts, err := parseHostsFile(hostsDir, b)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.G(ctx).WithError(err).Error("failed to decode hosts.toml")
|
log.G(ctx).WithError(err).Errorf("failed to decode %s", filepath.Join(hostsDir, "hosts.toml"))
|
||||||
// Fallback to checking certificate files
|
// Fallback to checking certificate files
|
||||||
return loadCertFiles(ctx, hostsDir)
|
return loadCertFiles(ctx, hostsDir)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user