correct logger name

This commit is contained in:
bakito 2021-03-28 20:00:22 +02:00
parent 70e60bb7d0
commit 44609a93e3
No known key found for this signature in database
GPG key ID: FAF93C1C384DD6B4
2 changed files with 3 additions and 2 deletions

2
.gitignore vendored
View file

@ -1,3 +1,5 @@
.idea
coverage.out
dist
adguardhome-sync
main

View file

@ -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)