Skip to content

Commit

Permalink
formatted debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
adnanrahic committed May 6, 2020
1 parent 9dae2fc commit 634363a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/plugins/output/elasticsearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,7 @@ OutputElasticsearch.prototype.indexData = function (token, logType, data, config

if (config.debug) {
consoleLogger.log('DEBUG-ES-OUTPUT')
consoleLogger.log('Shipped Log: ', {
severity: data.severity || data.level || 'info',
message: data.message || data.msg || data.MESSAGE,
data
})
consoleLogger.log(`Shipped Log: { severity: ${data.severity || data.level || 'info'}, message: ${data.message || data.msg || data.MESSAGE}, data: ${data} }`)
consoleLogger.log(`Endpoint: ${logsReceiverUrl}/${token}`)
}
}
Expand Down

0 comments on commit 634363a

Please sign in to comment.