From b1589698b64005d42bbe0050042fd83981cae4fc Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Sat, 28 Jun 2025 10:17:14 +0200 Subject: [PATCH] fix(debug): add HTTP status to verbose log --- lib/request.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/request.js b/lib/request.js index eff7e920..b379c1f8 100644 --- a/lib/request.js +++ b/lib/request.js @@ -43,7 +43,11 @@ export default class Request { } async text(url, options = {}) { - return this.fetch(url, options).then(res => res.text()); + const res = await this.fetch(url, options); + if (isDebugVerbosity()) { + debuglog('[Request] Got response from', url, ':\n', res.status, ' ', res.statusText); + } + return res.text(); } async json(url, options = {}) {