debug: hono logger

This commit is contained in:
Alex Gleason 2023-12-27 20:57:20 -06:00
parent 7b9baef165
commit baf51230ba
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -4,6 +4,7 @@ import { type User } from '@/db/users.ts';
import { import {
type Context, type Context,
cors, cors,
Debug,
type Event, type Event,
type Handler, type Handler,
Hono, Hono,
@ -90,7 +91,7 @@ if (Conf.sentryDsn) {
app.use('*', sentryMiddleware({ dsn: Conf.sentryDsn })); app.use('*', sentryMiddleware({ dsn: Conf.sentryDsn }));
} }
app.use('*', logger()); app.use('*', logger(Debug('ditto:http')));
app.get('/api/v1/streaming', streamingController); app.get('/api/v1/streaming', streamingController);
app.get('/api/v1/streaming/', streamingController); app.get('/api/v1/streaming/', streamingController);