From 63b63fe989e5f957211ea1a9df1728345bd811f6 Mon Sep 17 00:00:00 2001 From: kirinnee Date: Mon, 26 Feb 2024 21:52:00 +0800 Subject: [PATCH] refactor: add debug log --- src/domain/search_core.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/domain/search_core.ts b/src/domain/search_core.ts index aa2905c..c4322d1 100644 --- a/src/domain/search_core.ts +++ b/src/domain/search_core.ts @@ -188,7 +188,8 @@ class SearchCore { try { o = JSON.parse(text); } catch (e) { - this.#logger.error(e, "Error parsing response from KTMB", { text }); + this.#logger.info({ text }, "Error parsing response from KTMB"); + this.#logger.error(e, "Error parsing response from KTMB"); throw e; }