summaryrefslogtreecommitdiffstats
path: root/lib/apiv1/events.go
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2017-10-11 09:36:05 +0200
committerSebastien Douheret <sebastien.douheret@iot.bzh>2017-11-06 15:57:04 +0100
commit8119c1641e88ee5020e380c08119f508c6e24222 (patch)
tree5b295fb9e210b9bf5cee52fdb4fcb16d6878fd27 /lib/apiv1/events.go
parenta3d2ca72d05d28b1ae5820787ff696dd75fd17cc (diff)
Add Server UUID and use it build CmdID.
Diffstat (limited to 'lib/apiv1/events.go')
-rw-r--r--lib/apiv1/events.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/apiv1/events.go b/lib/apiv1/events.go
index da8298c..b87486f 100644
--- a/lib/apiv1/events.go
+++ b/lib/apiv1/events.go
@@ -112,6 +112,9 @@ func (s *APIService) eventsRegister(c *gin.Context) {
Folder: *cfg,
}
+ s.log.Debugf("Event emit %s - ID=%s, Status=%s IsInSync=%v", EventEventType+evType, cfg.ID,
+ cfg.Status, cfg.IsInSync)
+
if err := (*so).Emit(EventEventType+evType, msg); err != nil {
s.log.Errorf("WS Emit Folder StateChanged event : %v", err)
}