Bug, get proper log path

This commit is contained in:
Rudi 2022-10-23 01:53:50 -04:00
parent 5106303181
commit 7d8ef637b5
Signed by: rudi
GPG Key ID: EF64F3CBD1A1EBDD

View File

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