feat(integrations): logs
This commit is contained in:
parent
7dc3b70fe4
commit
a81bfed7b3
2 changed files with 7 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue