From 4adf5d2c0db85c6c6e531d499668f71423f6dbd6 Mon Sep 17 00:00:00 2001 From: Alexander Morozov Date: Tue, 8 Dec 2015 09:49:15 -0800 Subject: [PATCH] Add debug logging about events Signed-off-by: Alexander Morozov --- supervisor.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/supervisor.go b/supervisor.go index b3938b2..9291c68 100644 --- a/supervisor.go +++ b/supervisor.go @@ -133,6 +133,12 @@ func (s *Supervisor) Start() error { // so that nothing else is scheduled over the top of it. goruntime.LockOSThread() for e := range s.events { + logrus.WithFields(logrus.Fields{ + "type": e.Type, + "timestamp": e.Timestamp, + "id": e.ID, + "bundlePath": e.BundlePath, + }).Debug("event received") EventsCounter.Inc(1) h, ok := s.handlers[e.Type] if !ok {