Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

logs should include a format field #78

Open
willscott opened this issue Apr 5, 2023 · 1 comment
Open

logs should include a format field #78

willscott opened this issue Apr 5, 2023 · 1 comment

Comments

@willscott
Copy link
Contributor

caboose will also need to update its logs. we can add a format log field to differentiate between block and car requests

@guanzo
Copy link
Contributor

guanzo commented Apr 13, 2023

Let's instead add a request headers field to the log. Just add the Accept header for now, with either application/vnd.ipld.raw or application/vnd.ipld.car as the value. This will keep things extensible with minimal future modifications.

example:

const log = {
  headers: {
    Accept: "application/vnd.ipld.car"
  }
  // ...other fields
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants