Skip to content

Commit

Permalink
pass admin secret
Browse files Browse the repository at this point in the history
  • Loading branch information
umputun committed Dec 6, 2023
1 parent 831841f commit 730f54b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func main() {
os.Exit(2)
}

setupLog(opts.Dbg, opts.Telegram.Token)
setupLog(opts.Dbg, opts.Telegram.Token, opts.Admin.Secret)
log.Printf("[DEBUG] options: %+v", opts)

ctx, cancel := context.WithCancel(context.Background())
Expand Down Expand Up @@ -146,6 +146,7 @@ func execute(ctx context.Context) error {
AdminGroup: opts.Admin.Group,
AdminURL: opts.Admin.URL,
AdminListenAddr: opts.Admin.Address,
AdminSecret: opts.Admin.Secret,
Dry: opts.Dry,
}

Expand Down

0 comments on commit 730f54b

Please sign in to comment.