mirror of
https://github.com/netbirdio/netbird.git
synced 2025-06-20 01:38:41 +02:00
refactor: use logrus in service_controller
This commit is contained in:
parent
2c6748610c
commit
f7e51e7453
@ -2,12 +2,13 @@ package cmd
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/kardianos/service"
|
"github.com/kardianos/service"
|
||||||
|
log "github.com/sirupsen/logrus"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (p *program) Start(s service.Service) error {
|
func (p *program) Start(s service.Service) error {
|
||||||
// Start should not block. Do the actual work async.
|
// 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)
|
go upCmd.Run(p.cmd, p.args)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user