Skip to content

Commit

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

if (config.debug) {
consoleLogger.log('DEBUG-ES-OUTPUT')
consoleLogger.log(data.severity || data.level || 'info', 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
})
consoleLogger.log(`Endpoint: ${logsReceiverUrl}/${token}`)
}
}

Expand Down

0 comments on commit 9dae2fc

Please sign in to comment.