Добавлено логирование запроса получения токена авторизации

This commit is contained in:
ErickSkrauch 2017-06-17 01:16:34 +03:00
parent a8d8fffaa5
commit ad35872fc1

View File

@ -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
}