--
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 {
|
||||
go func(entityType model.EntityType) {
|
||||
defer wg.Done()
|
||||
page := 0
|
||||
page := 1
|
||||
limit := 250
|
||||
|
||||
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])
|
||||
}
|
||||
|
||||
a.logger.Info("Succesfull get tags:", zap.String("respBody", respBody), zap.String("fullUrl", fullURL))
|
||||
|
||||
if statusCode != fiber.StatusOK {
|
||||
errorMessage := fmt.Sprintf("received an incorrect response from GetListTags(%s): %s", fullURL, string(resBody))
|
||||
a.logger.Error(errorMessage, zap.Int("status", statusCode))
|
||||
|
Loading…
Reference in New Issue
Block a user