summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--go.mod2
-rw-r--r--service/reload/service.go4
2 files changed, 3 insertions, 3 deletions
diff --git a/go.mod b/go.mod
index 57ffd209..8513085e 100644
--- a/go.mod
+++ b/go.mod
@@ -10,6 +10,8 @@ require (
github.com/go-ole/go-ole v1.2.4 // indirect
github.com/mattn/go-colorable v0.1.4 // indirect
github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b
+ github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
+ github.com/modern-go/reflect2 v1.0.1 // indirect
github.com/olekukonko/tablewriter v0.0.4
github.com/pkg/errors v0.9.1
github.com/prometheus/client_golang v1.4.1
diff --git a/service/reload/service.go b/service/reload/service.go
index 7bfb0f28..73e20085 100644
--- a/service/reload/service.go
+++ b/service/reload/service.go
@@ -105,8 +105,6 @@ func (s *Service) Serve() error {
go func() {
for e := range s.watcher.Event {
- s.log.Debugf("[UPDATE] Service: %s, path to file: %s, filename: %s", e.service, e.path, e.info.Name())
-
treshholdc <- struct {
serviceConfig ServiceConfig
service string
@@ -139,7 +137,7 @@ func (s *Service) Serve() error {
if err != nil {
s.log.Error(err)
}
- s.log.Debugf("found file changes in %s service, reloading", k)
+ s.log.Debugf("[%s] found %v file(s) changes, reloading", k, len(updated))
}
// zero map
updated = make(map[string]ServiceConfig, 100)