mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-24 21:53:37 +00:00
server: emit logs for every HTTP request to help debug API traffic
This commit is contained in:
parent
a644e0e7a0
commit
50977dd4fe
2 changed files with 2 additions and 2 deletions
|
|
@ -142,7 +142,7 @@ function listen(hostname: string, port: Option.Option<number>, password: string)
|
|||
function bind(hostname: string, port: number, password: string) {
|
||||
const server = createServer()
|
||||
return Layer.build(
|
||||
HttpRouter.serve(createRoutes(password), { disableListenLog: true, disableLogger: true }).pipe(
|
||||
HttpRouter.serve(createRoutes(password), { disableListenLog: true }).pipe(
|
||||
Layer.provideMerge(NodeHttpServer.layer(() => server, { port, host: hostname })),
|
||||
Layer.provide(AppNodeBuilder.build(LayerNode.group([Credential.node, PermissionSaved.node]))),
|
||||
),
|
||||
|
|
|
|||
|
|
@ -97,4 +97,4 @@ function simulationEnabled() {
|
|||
export const routes = createRoutes()
|
||||
|
||||
export const webHandler = () =>
|
||||
HttpRouter.toWebHandler(routes.pipe(Layer.provide(HttpServer.layerServices)), { disableLogger: true })
|
||||
HttpRouter.toWebHandler(routes.pipe(Layer.provide(HttpServer.layerServices)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue