Skip to content

Commit

Permalink
show more watch status details
Browse files Browse the repository at this point in the history
  • Loading branch information
CMGS committed Apr 3, 2019
1 parent d7c33f9 commit 76e3127
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion store/etcdv3/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ func (m *Mercury) WatchDeployStatus(ctx context.Context, appname, entrypoint, no
}
return
}
log.Debugf("[WatchDeployStatus] recv %d events", len(resp.Events))
for _, ev := range resp.Events {
appname, entrypoint, nodename, id := parseStatusKey(string(ev.Kv.Key))
msg.Data = string(ev.Kv.Value)
Expand All @@ -179,6 +178,10 @@ func (m *Mercury) WatchDeployStatus(ctx context.Context, appname, entrypoint, no
msg.Entrypoint = entrypoint
msg.Nodename = nodename
msg.ID = id
log.Debugf("[WatchDeployStatus] app %s_%s event, id %s, action %s", appname, entrypoint, utils.ShortID(msg.ID), msg.Action)
if msg.Data != "" {
log.Debugf("[WatchDeployStatus] data %s", msg.Data)
}
ch <- msg
}
}
Expand Down

0 comments on commit 76e3127

Please sign in to comment.