refactor: use logrus in service_controller

This commit is contained in:
braginini 2021-08-17 09:14:21 +02:00
parent 2c6748610c
commit f7e51e7453

View File

@ -2,12 +2,13 @@ package cmd
import (
"github.com/kardianos/service"
log "github.com/sirupsen/logrus"
"github.com/spf13/cobra"
)
func (p *program) Start(s service.Service) error {
// Start should not block. Do the actual work async.
logger.Info("Starting service") //nolint
log.Info("starting service") //nolint
go upCmd.Run(p.cmd, p.args)
return nil
}