--
This commit is contained in:
parent
437b74d748
commit
37f4b69948
@ -302,7 +302,7 @@ func (m *Methods) CheckTags(ctx context.Context, tokens []model.Token) error {
|
|||||||
for _, entityType := range entityTypes {
|
for _, entityType := range entityTypes {
|
||||||
go func(entityType model.EntityType) {
|
go func(entityType model.EntityType) {
|
||||||
defer wg.Done()
|
defer wg.Done()
|
||||||
page := 0
|
page := 1
|
||||||
limit := 250
|
limit := 250
|
||||||
|
|
||||||
for {
|
for {
|
||||||
|
@ -252,6 +252,8 @@ func (a *Amo) GetListTags(req models.GetListTagsReq, accessToken string, domain
|
|||||||
return nil, fmt.Errorf("request GetListTags failed: %v", errs[0])
|
return nil, fmt.Errorf("request GetListTags failed: %v", errs[0])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a.logger.Info("Succesfull get tags:", zap.String("respBody", respBody), zap.String("fullUrl", fullURL))
|
||||||
|
|
||||||
if statusCode != fiber.StatusOK {
|
if statusCode != fiber.StatusOK {
|
||||||
errorMessage := fmt.Sprintf("received an incorrect response from GetListTags(%s): %s", fullURL, string(resBody))
|
errorMessage := fmt.Sprintf("received an incorrect response from GetListTags(%s): %s", fullURL, string(resBody))
|
||||||
a.logger.Error(errorMessage, zap.Int("status", statusCode))
|
a.logger.Error(errorMessage, zap.Int("status", statusCode))
|
||||||
|
Loading…
Reference in New Issue
Block a user