refactor: clearer log messages

This commit is contained in:
2026-01-04 21:13:47 +01:00
parent bdfc648f51
commit 8b41711df8
@@ -209,9 +209,6 @@ async function request(
): Promise<RequestResponse> {
try {
const cache_buster = `${url.includes('?') ? '&' : '?'}=${Date.now()}`;
if (dev) {
console.debug('Sending request: ', url + cache_buster, 'with', options.body ?? 'none');
}
const response = await fetch(url + cache_buster, options);
if (response.ok || supress_error_handling_http_codes.includes(response.status)) {
const contentType = response.headers.get('content-type') || '';
@@ -223,9 +220,6 @@ async function request(
const json: Record<string, unknown> = await response.json();
request_response = { ok: response.ok, http_code: response.status, json: json };
}
if (dev) {
console.debug(request_response);
}
return request_response;
}