From a81bfed7b351dbbb7f70c25e8228e8167065b19a Mon Sep 17 00:00:00 2001 From: Taha Yassine Kraiem Date: Thu, 27 Jan 2022 21:52:49 +0100 Subject: [PATCH] feat(integrations): logs --- backend/pkg/intervals/intervals.go | 2 +- backend/services/integrations/integration/client.go | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) 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 {