Skip to content

Commit

Permalink
fix(getCrumb): use logger.debug vs console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
gadicc committed Sep 18, 2023
1 parent b772399 commit bb1c06c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/getCrumb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export async function _getCrumb(
for (const cookie of cookies) {
if (cookie.key === "crumb") {
crumb = cookie.value;
console.log("Retrieved crumb from cookie store: " + crumb);
logger.debug("Retrieved crumb from cookie store: " + crumb);
break;
}
}
Expand Down Expand Up @@ -270,7 +270,7 @@ export async function _getCrumb(
"Could not find crumb. Yahoo's API may have changed; please report."
);

console.log("New crumb: " + crumb);
logger.debug("New crumb: " + crumb);
await cookieJar.setCookie(
new Cookie({
key: "crumb",
Expand Down

0 comments on commit bb1c06c

Please sign in to comment.