Skip to content

Commit 69a4914

Browse files
committed
fix: remove logs
Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
1 parent 8384dc4 commit 69a4914

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

services/libs/data-access-layer/src/activities/tinybirdAdapter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,8 +462,8 @@ export function buildActivitiesParams(arg: ExtendedArgs): TBParams {
462462
// segments as Array(String) — cap at 500 to avoid Tinybird 400 on large project groups.
463463
// When an entity filter (memberId/orgId) is present this slice is a preview; users can
464464
// drill into a specific segment for full results.
465-
const MAX_SEGMENTS = 6000
466-
const allSegments = toStringArray(arg.segmentIds)
465+
const MAX_SEGMENTS = 5000
466+
const allSegments = toStringArray(arg.segmentIds) ?? []
467467
if (allSegments.length > MAX_SEGMENTS) {
468468
log.warn(
469469
{ totalSegments: allSegments.length, cappedAt: MAX_SEGMENTS },

services/libs/database/src/tinybirdClient.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,12 @@ export class TinybirdClient {
199199
}
200200

201201
// If it's not a retryable error or we've exhausted retries, throw the error
202+
if (statusCode) {
203+
log.error(
204+
{ statusCode, responseBody: error.response?.data },
205+
'Tinybird non-retriable error',
206+
)
207+
}
202208
throw error
203209
}
204210
}

0 commit comments

Comments
 (0)