diff --git a/backend/pkg/intervals/intervals.go b/backend/pkg/intervals/intervals.go index 5cc603ad6..0380f68f9 100644 --- a/backend/pkg/intervals/intervals.go +++ b/backend/pkg/intervals/intervals.go @@ -2,7 +2,7 @@ package intervals const EVENTS_COMMIT_INTERVAL = 30 * 1000 const HEARTBEAT_INTERVAL = 2 * 60 * 1000 -const INTEGRATIONS_REQUEST_INTERVAL = 2 * 60 * 1000 +const INTEGRATIONS_REQUEST_INTERVAL = 1 * 60 * 1000 const EVENTS_PAGE_EVENT_TIMEOUT = 2 * 60 * 1000 const EVENTS_INPUT_EVENT_TIMEOUT = 2 * 60 * 1000 const EVENTS_PERFORMANCE_AGGREGATION_TIMEOUT = 2 * 60 * 1000 diff --git a/backend/services/integrations/integration/client.go b/backend/services/integrations/integration/client.go index 3786f4324..2abf9913d 100644 --- a/backend/services/integrations/integration/client.go +++ b/backend/services/integrations/integration/client.go @@ -1,12 +1,13 @@ package integration import ( - "sync" - "fmt" "encoding/json" + "fmt" + "log" + "sync" - "openreplay/backend/pkg/messages" "openreplay/backend/pkg/db/postgres" + "openreplay/backend/pkg/messages" "openreplay/backend/pkg/utime" ) @@ -135,6 +136,8 @@ func (c *client) Request() { c.requestData.LastAttemptTimestamp = utime.CurrentTimestamp() err := c.requester.Request(c) if err != nil { + log.Println("ERRROR L139") + log.Println(err) c.handleError(err) c.requestData.UnsuccessfullAttemptsCount++; } else {