Skip to content

Commit

Permalink
chore: remove bulky logs (#1192)
Browse files Browse the repository at this point in the history
Co-authored-by: Samika Kashyap <samikas@samikas-mbp.lan>
  • Loading branch information
samika98 and Samika Kashyap authored Apr 17, 2024
1 parent 96f079a commit e0538a5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/auth/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ function buildBodyDigest(contentType: string | undefined, body: any): string | u
if (contentType.includes('application/vnd.ipld.car')) {
const carFactory = new CARFactory()
carFactory.codecs.add(DAG_JOSE)
console.log('Will build a car file from req.body', body)
try {
console.log('Will build a car file from req.body (as utf8 string)', u8a.toString(body, 'base64'))
} catch(e) {
console.log('Couldn\'t convert req.body to string: ', e)
}
// console.log('Will build a car file from req.body', body)
// try {
// console.log('Will build a car file from req.body (as utf8 string)', u8a.toString(body, 'base64'))
// } catch(e) {
// console.log('Couldn\'t convert req.body to string: ', e)
// }
const car = carFactory.fromBytes(body)
if (!car.roots[0]) throw Error('Missing CAR root')
return car.roots[0].toString()
Expand Down

0 comments on commit e0538a5

Please sign in to comment.