Skip to content

Commit

Permalink
added safe flat
Browse files Browse the repository at this point in the history
  • Loading branch information
Adnan Rahic committed Jan 13, 2021
1 parent ac2adfc commit 57efc0f
Show file tree
Hide file tree
Showing 3 changed files with 986 additions and 1,434 deletions.
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var winston = require('winston')
const winstonCompat = require('winston-compat')
var _dirname = require('path').dirname
var LogseneJS = require('logsene-js')
var flat = require('flat')
const { flatten } = require('safe-flat')

var Logsene = function (options) {
options = options || {}
Expand Down Expand Up @@ -199,7 +199,7 @@ Logsene.prototype.log = function (meta, callback) {
})
console.log(output)
}
this.logger.log(level, msg, flat(metaData, this.flatOptions), callback)
this.logger.log(level, msg, flatten(metaData, this.flatOptions), callback)
}

Logsene.prototype.clearLogs = function () {
Expand Down
Loading

0 comments on commit 57efc0f

Please sign in to comment.