Skip to content

Commit 9b2a8ed

Browse files
committed
fix: update Fastify logger configuration in server setup
1 parent b3b9ae9 commit 9b2a8ed

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Fastify, { type FastifyServerOptions } from 'fastify'
1+
import Fastify from 'fastify'
22
import { registerMeteoAlertsRoutes } from './routes/meteo-alerts'
33
import i18next from 'i18next'
44
import italian from './resources/locales/it.json'
@@ -14,7 +14,7 @@ const translations = {
1414

1515
export const startServer = async () => {
1616
const fastify = Fastify({
17-
logger: logger as unknown as FastifyServerOptions['logger'],
17+
loggerInstance: logger,
1818
disableRequestLogging: true,
1919
})
2020

0 commit comments

Comments
 (0)