Skip to content

Commit

Permalink
logs: add additional info logging to the backend
Browse files Browse the repository at this point in the history
Signed-off-by: Sergey Generalov <[email protected]>
  • Loading branch information
genbit committed Sep 28, 2020
1 parent fa06017 commit 945f2da
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backend/server/get-events.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ func handleFlowStream(
flags := cache.UpsertService(senderSvc)
if flags.Changed() {
svc := senderSvc.ToProto()
log.Infof("Service changed: %s", svc)
senderEvent := eventResponseForService(pbFlow, svc, flags)

drain <- senderEvent
Expand All @@ -177,6 +178,7 @@ func handleFlowStream(
flags = cache.UpsertService(receiverSvc)
if flags.Changed() {
svc := receiverSvc.ToProto()
log.Infof("Service changed: %s", svc)
receiverEvent := eventResponseForService(pbFlow, svc, flags)

drain <- receiverEvent
Expand All @@ -192,6 +194,7 @@ func handleFlowStream(

flags := cache.UpsertServiceLink(serviceLink)
if flags.Changed() {
log.Infof("Service link changed: %s", serviceLink)
linkEvent := eventResponseForLink(serviceLink, flags)
drain <- linkEvent
}
Expand Down

0 comments on commit 945f2da

Please sign in to comment.