From 634363a62ed18650a47b312c8d05745320edb06e Mon Sep 17 00:00:00 2001 From: Adnan Rahic Date: Wed, 6 May 2020 22:29:44 +0200 Subject: [PATCH] formatted debug output --- lib/plugins/output/elasticsearch.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/plugins/output/elasticsearch.js b/lib/plugins/output/elasticsearch.js index 8cf060eb..31a4ce62 100644 --- a/lib/plugins/output/elasticsearch.js +++ b/lib/plugins/output/elasticsearch.js @@ -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}`) } }