mirror of
https://github.com/documenso/documenso.git
synced 2025-11-14 08:42:12 +10:00
feat: add more api logs (#1870)
Adds more detailed API logging using Pino
This commit is contained in:
@ -8,8 +8,16 @@ export const getTeamRoute = authenticatedProcedure
|
||||
.input(ZGetTeamRequestSchema)
|
||||
.output(ZGetTeamResponseSchema)
|
||||
.query(async ({ input, ctx }) => {
|
||||
const { teamReference } = input;
|
||||
|
||||
ctx.logger.info({
|
||||
input: {
|
||||
teamReference,
|
||||
},
|
||||
});
|
||||
|
||||
return await getTeam({
|
||||
teamReference: input.teamReference,
|
||||
teamReference,
|
||||
userId: ctx.user.id,
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user