Skip to content

Commit 7ee7500

Browse files
authored
fix: stringify headers logging (#127)
* fix: stringify headers logging * Remove comment
1 parent ce7e48a commit 7ee7500

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/requests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export async function post(
2727
if (logStuff) {
2828
logger.info(` posted to ${apiPath}`);
2929
logger.info(` statusCode: ${response.statusCode}`);
30-
logger.info(` headers: ${response.headers}`);
30+
logger.info(` headers: ${JSON.stringify(response.headers)}`);
3131
// it's text because text accepts both json and plain text, while json only supports json
3232
logger.info(` data: ${await response.text()}`);
3333
}

0 commit comments

Comments
 (0)