Skip to content

Commit ce9388b

Browse files
committed
add error to log
1 parent 9a88205 commit ce9388b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/config/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ func getConfigFilePaths() []string {
449449
if err == nil {
450450
paths = append(paths, path)
451451
} else {
452-
slog.Warn("Unable to determine process's current directory")
452+
slog.Warn("Unable to determine process's current directory", "error", err)
453453
}
454454

455455
return paths
@@ -537,7 +537,7 @@ func resolveEnvironmentVariableLabels() map[string]string {
537537
if len(splitLabel) == KeyValueNumber {
538538
envLabels[splitLabel[0]] = splitLabel[1]
539539
} else {
540-
slog.Warn("Unable to parse label: " + label)
540+
slog.Warn("Unable to parse label ", "label", label)
541541
}
542542
}
543543
}

0 commit comments

Comments
 (0)