1
0
mirror of https://git.sdf.org/rudi/headless9.git synced 2026-03-22 05:17:27 +00:00

Bug, get proper log path

This commit is contained in:
2022-10-23 01:53:50 -04:00
parent 5106303181
commit 7d8ef637b5

View File

@ -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)