From 17ab6663d5522bf4db3e6cce70352f8ba4379e99 Mon Sep 17 00:00:00 2001 From: Sebastien Douheret Date: Mon, 16 Oct 2017 17:54:11 +0200 Subject: Add silly log level support. Silly logging is enable when: XDS_LOG_SILLY env var is set and log level is debug --- lib/apiv1/events.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/apiv1/events.go') diff --git a/lib/apiv1/events.go b/lib/apiv1/events.go index b87486f..8f92ae0 100644 --- a/lib/apiv1/events.go +++ b/lib/apiv1/events.go @@ -112,8 +112,8 @@ 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) + s.log.Debugf("WS Emit %s - Status=%10s, IsInSync=%6v, ID=%s", + EventEventType+evType, cfg.Status, cfg.IsInSync, cfg.ID) if err := (*so).Emit(EventEventType+evType, msg); err != nil { s.log.Errorf("WS Emit Folder StateChanged event : %v", err) -- cgit 1.2.3-korg