Skip to content

Commit 0c2a9df

Browse files
committed
Update logger.ts
1 parent 5aaab2a commit 0c2a9df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/logger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ morgan.token('graphql-operation', (req: express.Request) => {
1616
const isMutation = req.body.query.includes('mutation');
1717

1818
const effect = isMutation ? Effect.ForegroundRed : Effect.ForegroundMagenta;
19-
const prefix = sgr(isMutation ? 'Mutation' : 'Query', effect);
19+
const prefix = sgr(isMutation ? 'mutation' : 'query', effect);
2020

2121
if (match && match[1]) {
2222
return prefix + ' ' + sgr(sgr(match[1], effect), Effect.Bold);

0 commit comments

Comments
 (0)