Skip to content

Commit 7d550c0

Browse files
committed
gets logf working again #50
1 parent 5e6cd42 commit 7d550c0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cli/controller/logf.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"context"
66
"fmt"
77
"io"
8+
"pmon3/cli"
89
"pmon3/cli/controller/base"
910
"pmon3/cli/shell"
1011
"pmon3/protos"
@@ -42,6 +43,9 @@ func Logf(idOrName string, numLines string, ctx context.Context) *protos.CmdResp
4243
}
4344
}
4445
}()
46+
if err = c.Start(); err != nil {
47+
cli.Log.Errorf("Encountered an error executing: %s: %s", c.String(), err)
48+
}
4549
wg.Wait()
4650
}
4751

0 commit comments

Comments
 (0)