Bug, get proper log path
This commit is contained in:
parent
5106303181
commit
7d8ef637b5
2
main.go
2
main.go
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user