Skip to content

Commit

Permalink
fix: error with pretty-print and jest
Browse files Browse the repository at this point in the history
jest detected hanging functions and I believe it's the translateTime pretty print option was not correct
  • Loading branch information
yoshutch committed Dec 8, 2023
1 parent d2f92f8 commit 556275c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@byu-oit/logger",
"version": "0.4.0",
"version": "0.4.1",
"description": "Default configuration for pino logger",
"contributors": [
{
Expand Down
2 changes: 1 addition & 1 deletion src/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function ByuLogger (options?: LoggerOptions): Logger {
...!isProduction() && isInstalled('pino-pretty') && {
transport: {
target: 'pino-pretty',
options: { translateTime: 'UTC:yyyy-mm-dd\'T\'HH:MM:ss.l\'Z\'' }
options: { translateTime: 'UTC:yyyy-mm-dd HH:MM:ss.l' }
}
}
}
Expand Down

0 comments on commit 556275c

Please sign in to comment.