Skip to content

Commit

Permalink
Added 2 spaces in objectPrinter JSON stringify
Browse files Browse the repository at this point in the history
  • Loading branch information
1xtr committed Apr 5, 2023
1 parent fea0540 commit cac855d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class ElasticLogger extends BaseLogger {

this.objectPrinter = this.opts.objectPrinter
? this.opts.objectPrinter
: (o) => JSON.stringify(o, replacerFunc())
: (o) => JSON.stringify(o, replacerFunc(), 2)

if (this.opts.interval > 0) {
this.timer = setInterval(() => this.flush(), this.opts.interval)
Expand Down

0 comments on commit cac855d

Please sign in to comment.