mirror of
https://github.com/outbackdingo/labca.git
synced 2026-01-27 10:19:34 +00:00
15 lines
436 B
Diff
15 lines
436 B
Diff
diff --git a/log/log.go b/log/log.go
|
|
index 75262337d..4245e41a9 100644
|
|
--- a/log/log.go
|
|
+++ b/log/log.go
|
|
@@ -94,6 +94,9 @@ func newStdoutWriter(level int) *stdoutWriter {
|
|
}
|
|
|
|
prefix := fmt.Sprintf("%s %s %s[%d]:", shortHostname, datacenter, core.Command(), os.Getpid())
|
|
+ if datacenter == "unknown" {
|
|
+ prefix = fmt.Sprintf("%s %s[%d]:", shortHostname, core.Command(), os.Getpid())
|
|
+ }
|
|
|
|
return &stdoutWriter{
|
|
prefix: prefix,
|