Browse Source

monitor: fix dropped error (#7206)

pull/7260/head
Lars Lehtonen 5 years ago committed by GitHub
parent
commit
26d706eecd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      command/monitor/monitor.go

4
command/monitor/monitor.go

@ -64,6 +64,10 @@ func (c *cmd) Run(args []string) int {
eventDoneCh := make(chan struct{})
if c.logJSON {
logCh, err = client.Agent().MonitorJSON(c.logLevel, eventDoneCh, nil)
if err != nil {
c.UI.Error(fmt.Sprintf("Error starting JSON monitor: %s", err))
return 1
}
}
logCh, err = client.Agent().Monitor(c.logLevel, eventDoneCh, nil)
if err != nil {

Loading…
Cancel
Save