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(),
|
SampleRate: z.int(),
|
||||||
LogLineCount: z.int(),
|
LogLineCount: z.int(),
|
||||||
CaptureNativeCrashes: z.int(),
|
CaptureNativeCrashes: z.int(),
|
||||||
AMRThresholdMS: z.int(),
|
ANRThresholdMs: z.int(),
|
||||||
MessageCount: z.int(),
|
MessageCount: z.int(),
|
||||||
MessageRegex: z.string(),
|
MessageRegex: z.string(),
|
||||||
VersionRegex: z.string(),
|
VersionRegex: z.string(),
|
||||||
|
|||||||
@@ -73,15 +73,15 @@ export const configRoutes = new Hono<App>({ strict: false })
|
|||||||
}),
|
}),
|
||||||
(c) =>
|
(c) =>
|
||||||
c.json({
|
c.json({
|
||||||
ReportBudget: 125,
|
ReportBudget: 0,
|
||||||
FilterType: 0,
|
FilterType: 0,
|
||||||
SampleRate: 1,
|
SampleRate: 0,
|
||||||
LogLineCount: 50,
|
LogLineCount: 0,
|
||||||
CaptureNativeCrashes: 1,
|
CaptureNativeCrashes: 0,
|
||||||
AMRThresholdMS: 0,
|
ANRThresholdMs: 0,
|
||||||
MessageCount: 1000,
|
MessageCount: 0,
|
||||||
MessageRegex: '^.*$',
|
MessageRegex: '',
|
||||||
VersionRegex: '.*',
|
VersionRegex: '',
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
// ShareBaseUrl is derived from the deploy-time base domain; the rest of the
|
// 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`)
|
const res = await exports.default.fetch(`${ORIGIN}/api/config/v1/backtrace`)
|
||||||
expect(res.status).toBe(200)
|
expect(res.status).toBe(200)
|
||||||
const body = (await res.json()) as { ReportBudget: number; VersionRegex: string }
|
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 () => {
|
test('GET /api/versioncheck/v4 reports current for the matching build', async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user