mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +00:00
improve the warning message
This commit is contained in:
parent
12ed5a1efe
commit
1763fb8904
|
@ -141,7 +141,7 @@ func newNotificationSystem(userConfig *bbgo.Config, persistence bbgo.Persistence
|
||||||
|
|
||||||
var session telegramnotifier.Session
|
var session telegramnotifier.Session
|
||||||
if err := sessionStore.Load(&session); err != nil || session.Owner == nil {
|
if err := sessionStore.Load(&session); err != nil || session.Owner == nil {
|
||||||
log.Warnf("session not found, generating new one-time password key for new session...")
|
log.Warnf("telegram session not found, generating new one-time password key for new telegram session...")
|
||||||
|
|
||||||
qrcodeImagePath := fmt.Sprintf("otp-%s.png", telegramID)
|
qrcodeImagePath := fmt.Sprintf("otp-%s.png", telegramID)
|
||||||
key, err := setupNewOTPKey(qrcodeImagePath)
|
key, err := setupNewOTPKey(qrcodeImagePath)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user