mirror of
https://github.com/elyby/chrly.git
synced 2024-12-02 11:40:56 +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) {
|
func getToken() (*accounts.Token, error) {
|
||||||
if token == nil {
|
if token == nil {
|
||||||
|
println("token is nil, trying to obtain new one")
|
||||||
tempToken, err := accounts.GetToken(*AccountsTokenConfig)
|
tempToken, err := accounts.GetToken(*AccountsTokenConfig)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
println("cannot obtain new one token", err)
|
||||||
return &accounts.Token{}, err
|
return &accounts.Token{}, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user