Question about HttpServerResponse Design Decisions and Logging in Effect Typescript Library
I had a question about some of the design decisions related to the HttpServerResponse. Here is a minimal code snippet related to a health check endpoint on my API
First, here is the API group definition that happens in my core module
Second, here is the server defining it's handler
My goal here was was to disable logging just for this endpoint while retaining middleware logging for the rest of my API. My original solution was simply having the handler be
() => Effect.succeed({ status: "ok" })
This was nice as it was type safe with respect to my API definition (i.e. { status: "invalid" }) would raise a type error.
(continued in comments as I don't have discord nitro lol)
First, here is the API group definition that happens in my core module
Second, here is the server defining it's handler
My goal here was was to disable logging just for this endpoint while retaining middleware logging for the rest of my API. My original solution was simply having the handler be
() => Effect.succeed({ status: "ok" })
This was nice as it was type safe with respect to my API definition (i.e. { status: "invalid" }) would raise a type error.
(continued in comments as I don't have discord nitro lol)
