mirror of
https://github.com/bakito/adguardhome-sync.git
synced 2025-01-01 04:41:51 +08:00
correct logger name
This commit is contained in:
parent
70e60bb7d0
commit
44609a93e3
2 changed files with 3 additions and 2 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,3 +1,5 @@
|
|||
.idea
|
||||
coverage.out
|
||||
dist
|
||||
adguardhome-sync
|
||||
main
|
||||
|
|
|
@ -15,8 +15,7 @@ var doCmd = &cobra.Command{
|
|||
Short: "Start a synchronisation from origin to replica",
|
||||
Long: `Synchronizes the configuration form an origin instance to a replica`,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
|
||||
logger = log.GetLogger("root")
|
||||
logger = log.GetLogger("run")
|
||||
cfg := &types.Config{}
|
||||
if err := viper.Unmarshal(cfg); err != nil {
|
||||
logger.Error(err)
|
||||
|
|
Loading…
Reference in a new issue