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