From 8119c1641e88ee5020e380c08119f508c6e24222 Mon Sep 17 00:00:00 2001 From: Sebastien Douheret Date: Wed, 11 Oct 2017 09:36:05 +0200 Subject: Add Server UUID and use it build CmdID. --- lib/apiv1/events.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/apiv1/events.go') 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) } -- cgit 1.2.3-korg