mirror of
https://github.com/elyby/chrly.git
synced 2024-11-30 02:32:19 +05:30
Добавлено логирование запроса получения токена авторизации
This commit is contained in:
parent
a8d8fffaa5
commit
ad35872fc1
@ -42,8 +42,10 @@ func _getByField(field string, value string) (accounts.AccountInfoResponse, erro
|
||||
|
||||
func getToken() (*accounts.Token, error) {
|
||||
if token == nil {
|
||||
println("token is nil, trying to obtain new one")
|
||||
tempToken, err := accounts.GetToken(*AccountsTokenConfig)
|
||||
if err != nil {
|
||||
println("cannot obtain new one token", err)
|
||||
return &accounts.Token{}, err
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user