Skip to content

Commit 57efc0f

Browse files
author
Adnan Rahic
committed
added safe flat
1 parent ac2adfc commit 57efc0f

File tree

3 files changed

+986
-1434
lines changed

3 files changed

+986
-1434
lines changed

lib/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ var winston = require('winston')
77
const winstonCompat = require('winston-compat')
88
var _dirname = require('path').dirname
99
var LogseneJS = require('logsene-js')
10-
var flat = require('flat')
10+
const { flatten } = require('safe-flat')
1111

1212
var Logsene = function (options) {
1313
options = options || {}
@@ -199,7 +199,7 @@ Logsene.prototype.log = function (meta, callback) {
199199
})
200200
console.log(output)
201201
}
202-
this.logger.log(level, msg, flat(metaData, this.flatOptions), callback)
202+
this.logger.log(level, msg, flatten(metaData, this.flatOptions), callback)
203203
}
204204

205205
Logsene.prototype.clearLogs = function () {

0 commit comments

Comments
 (0)