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:
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)
|
||||
|
||||
Reference in New Issue
Block a user