aboutsummaryrefslogtreecommitdiff
path: root/service.go
diff options
context:
space:
mode:
Diffstat (limited to 'service.go')
-rw-r--r--service.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/service.go b/service.go
index fd9fc59..69e68a3 100644
--- a/service.go
+++ b/service.go
@@ -37,7 +37,7 @@ func NewService(cfg ServiceConfig) (svc *Service, err error) {
func (svc *Service) Scan() (report ScanReport) {
var err error
- report.Name = svc.cfg.Name
+ report.ID = svc.cfg.ID
report.At = internal.Now()
if !svc.isReady {
err = svc.connect()
@@ -89,7 +89,7 @@ func (svc *Service) Start(reportq chan<- ScanReport) {
for {
_, ok := <-svc.ticker.C
if !ok {
- log.Printf("Service: %s not ok", svc.cfg.Name)
+ log.Printf("Service: %s not ok", svc.cfg.ID)
return
}
reportq <- svc.Scan()