repos / pico

pico services mono repo
git clone https://github.com/picosh/pico.git

commit
b771065
parent
b80b790
author
Antonio Mika
date
2025-02-27 09:44:11 -0500 EST
Use consistent naming
1 files changed,  +2, -2
M shared/config.go
+2, -2
 1@@ -281,7 +281,7 @@ func CreateLogger(space string) *slog.Logger {
 2 				Level:     slog.LevelInfo,
 3 			},
 4 		),
 5-	).With("service")
 6+	).With("service", space)
 7 
 8 	if strings.ToLower(utils.GetEnv("PICO_PIPE_ENABLED", "true")) == "true" {
 9 		conn := NewPicoPipeClient()
10@@ -293,7 +293,7 @@ func CreateLogger(space string) *slog.Logger {
11 		logger = logger.With("hostname", hostname)
12 	}
13 
14-	nodename := os.Getenv("NODE_NAME")
15+	nodename := os.Getenv("NODENAME")
16 	if nodename != "" {
17 		logger = logger.With("nodename", nodename)
18 	}