mirror of
https://github.com/djdevin/recflare.git
synced 2026-10-25 23:18:51 -07:00
[api] turn off backtraces
This commit is contained in:
@@ -143,7 +143,7 @@ export const BacktraceConfig = z.object({
|
||||
SampleRate: z.int(),
|
||||
LogLineCount: z.int(),
|
||||
CaptureNativeCrashes: z.int(),
|
||||
AMRThresholdMS: z.int(),
|
||||
ANRThresholdMs: z.int(),
|
||||
MessageCount: z.int(),
|
||||
MessageRegex: z.string(),
|
||||
VersionRegex: z.string(),
|
||||
|
||||
@@ -73,15 +73,15 @@ export const configRoutes = new Hono<App>({ strict: false })
|
||||
}),
|
||||
(c) =>
|
||||
c.json({
|
||||
ReportBudget: 125,
|
||||
ReportBudget: 0,
|
||||
FilterType: 0,
|
||||
SampleRate: 1,
|
||||
LogLineCount: 50,
|
||||
CaptureNativeCrashes: 1,
|
||||
AMRThresholdMS: 0,
|
||||
MessageCount: 1000,
|
||||
MessageRegex: '^.*$',
|
||||
VersionRegex: '.*',
|
||||
SampleRate: 0,
|
||||
LogLineCount: 0,
|
||||
CaptureNativeCrashes: 0,
|
||||
ANRThresholdMs: 0,
|
||||
MessageCount: 0,
|
||||
MessageRegex: '',
|
||||
VersionRegex: '',
|
||||
})
|
||||
)
|
||||
// ShareBaseUrl is derived from the deploy-time base domain; the rest of the
|
||||
|
||||
@@ -289,7 +289,7 @@ describe('public endpoints', () => {
|
||||
const res = await exports.default.fetch(`${ORIGIN}/api/config/v1/backtrace`)
|
||||
expect(res.status).toBe(200)
|
||||
const body = (await res.json()) as { ReportBudget: number; VersionRegex: string }
|
||||
expect(body).toMatchObject({ ReportBudget: 125, VersionRegex: '.*' })
|
||||
expect(body).toMatchObject({ ReportBudget: 0, ANRThresholdMs: 0, VersionRegex: '' })
|
||||
})
|
||||
|
||||
test('GET /api/versioncheck/v4 reports current for the matching build', async () => {
|
||||
|
||||
Reference in New Issue
Block a user