Browse Source

Bug, get proper log path

master
Gregory Rudolph 2 years ago
parent
commit
7d8ef637b5
Signed by: rudi
GPG Key ID: EF64F3CBD1A1EBDD
  1. 2
      main.go

2
main.go

@ -176,7 +176,7 @@ func processCommand(cmd string) error {
if verb == "status" { if verb == "status" {
ctlOut = strings.Join(sysTail(10, fmt.Sprintf("%+v/%+v.log", logPath, svc)), "\n") ctlOut = strings.Join(sysTail(10, fmt.Sprintf("%+v/%+v.log", logPath, svc)), "\n")
} else { } else {
ctlOut = strings.Join(sysTail(messages, fmt.Sprintf("%+v/%+v.log", logPath, svc)), "\n") ctlOut = strings.Join(sysTail(messages, fmt.Sprintf("%+v/%+v.log", logPath, "headless9")), "\n")
} }
f := getCtl() f := getCtl()
_, err := fmt.Fprintf(f, "%+v", ctlOut) _, err := fmt.Fprintf(f, "%+v", ctlOut)

Loading…
Cancel
Save