Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
Fix logging
Browse files Browse the repository at this point in the history
  • Loading branch information
anduong96 committed Dec 22, 2023
1 parent 46f24ec commit 94c2402
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/graphql/_plugins/log.plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
GraphQLRequestContext,
} from '@apollo/server';

import { isDev, isProd } from '@app/env';
import { isProd } from '@app/env';
import { Logger } from '@app/lib/logger';

import { ApolloServerContext } from '../_context/types';
Expand Down
1 change: 1 addition & 0 deletions src/lib/logger/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ export const Logger = new TsLog.Logger({
},
prettyLogTemplate:
'\n{{rawIsoStr}} {{logLevelName}} {{name}} {{filePathWithLine}}\n',
stylePrettyLogs: isDev,
type: 'pretty',
});

0 comments on commit 94c2402

Please sign in to comment.