summaryrefslogtreecommitdiffstats
path: root/lib/agent/project-st.go
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2017-11-08 10:53:39 +0100
committerSebastien Douheret <sebastien.douheret@iot.bzh>2017-11-08 10:53:39 +0100
commit0a5ab2ca1ab89e6e667b7f9c7bdffdff036ca9b7 (patch)
treebdc803f2d02347540d221bb9fc9f8c4b6e748481 /lib/agent/project-st.go
parent02aec942b44eecd2ea9b311bb4ba2d60cce21e9a (diff)
Unregistered events when client WS session is closed.
Diffstat (limited to 'lib/agent/project-st.go')
-rw-r--r--lib/agent/project-st.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/agent/project-st.go b/lib/agent/project-st.go
index cd55656..e2cd3cb 100644
--- a/lib/agent/project-st.go
+++ b/lib/agent/project-st.go
@@ -143,7 +143,7 @@ func (p *STProject) _cbServerFolderChanged(pData interface{}, data interface{})
p.folder.DataCloudSync.STSvrStatus = evt.Folder.Status
if err := p.events.Emit(apiv1.EVTProjectChange, p.server.FolderToProject(*p.folder)); err != nil {
- p.Log.Warningf("Cannot notify project change: %v", err)
+ p.Log.Warningf("Cannot notify project change (from server): %v", err)
}
}
return nil
@@ -182,7 +182,7 @@ func (p *STProject) _cbLocalSTEvents(ev st.Event, data *st.EventsCBData) {
p.folder.DataCloudSync.STLocStatus = sts
if err := p.events.Emit(apiv1.EVTProjectChange, p.server.FolderToProject(*p.folder)); err != nil {
- p.Log.Warningf("Cannot notify project change: %v", err)
+ p.Log.Warningf("Cannot notify project change (local): %v", err)
}
}
}