From 1d3822d3073592e61658dd96dbde1f62cf486e8d Mon Sep 17 00:00:00 2001 From: AnimeDL Date: Sat, 28 Oct 2023 18:09:01 -0700 Subject: [PATCH] Extra Debug Logging --- hidive.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hidive.ts b/hidive.ts index 8e23e45..ed65dfe 100644 --- a/hidive.ts +++ b/hidive.ts @@ -257,6 +257,10 @@ export default class Hidive implements ServiceClass { }; } + if (this.debug) { + console.debug(apiReq.res.body); + } + if (!isGet && apiReq.res.headers && apiReq.res.headers['set-cookie']) { const newReqCookies = shlp.cookie.parse(apiReq.res.headers['set-cookie'] as unknown as Record); this.session = Object.assign(this.session, newReqCookies);