Skip to content

Commit

Permalink
Fix bug where pretty-printing was always on.
Browse files Browse the repository at this point in the history
  • Loading branch information
GriffinSchneider committed Oct 30, 2018
1 parent e222227 commit b1daf69
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gasbuddy/configured-pino",
"version": "1.0.2",
"version": "1.0.3",
"description": "A configuration driven Pino logging infrastructure",
"main": "build/index.js",
"config": {
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default class ConfiguredLogstash {
if ('addTimestamp' in opts) {
cleanOptions.timestamp = opts.addTimestamp;
}
if ('prettyPrint' in opts) {
if (opts.prettyPrint === true) {
cleanOptions.prettyPrint = {
colorize: true,
translateTime: 'SYS:h:MM:ss.l TT', // Human-readable time in system timezone
Expand Down

0 comments on commit b1daf69

Please sign in to comment.