feat: increase response body limit
This commit is contained in:
parent
ecb876c964
commit
bb05dae926
|
|
@ -246,7 +246,7 @@ async fn run_check(client: &reqwest::Client, monitor: &Monitor, scheduled_at: Op
|
||||||
|
|
||||||
let meta = json!({
|
let meta = json!({
|
||||||
"headers": headers,
|
"headers": headers,
|
||||||
"body_preview": &body[..body.len().min(500)],
|
"body_preview": &body[..body.len().min(25_000)],
|
||||||
});
|
});
|
||||||
|
|
||||||
debug!("{} → {status} {latency_ms}ms up={up}", monitor.url);
|
debug!("{} → {status} {latency_ms}ms up={up}", monitor.url);
|
||||||
|
|
|
||||||
|
|
@ -226,7 +226,7 @@
|
||||||
// Body preview
|
// Body preview
|
||||||
if (bodyPreview) {
|
if (bodyPreview) {
|
||||||
html += '<div>';
|
html += '<div>';
|
||||||
html += '<div class="text-xs text-gray-500 mb-1">Response Body <span class="text-gray-600">(first 500 chars)</span></div>';
|
html += '<div class="text-xs text-gray-500 mb-1">Response Body <span class="text-gray-600">(up to 25KB)</span></div>';
|
||||||
html += `<pre class="bg-gray-800/50 border border-border-subtle rounded-lg px-3 py-2 text-xs font-mono text-gray-300 whitespace-pre-wrap break-all max-h-80 overflow-y-auto">${escapeHtml(bodyPreview)}</pre>`;
|
html += `<pre class="bg-gray-800/50 border border-border-subtle rounded-lg px-3 py-2 text-xs font-mono text-gray-300 whitespace-pre-wrap break-all max-h-80 overflow-y-auto">${escapeHtml(bodyPreview)}</pre>`;
|
||||||
html += '</div>';
|
html += '</div>';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue