From 2afa8652fa55817ae6bd6c26c2afdee41ea6dfb6 Mon Sep 17 00:00:00 2001 From: Debarghya Bhattacharya Date: Fri, 10 Apr 2020 21:18:43 +0530 Subject: [PATCH] Removed unused options --- src/RabbitmqTransport.js | 1 - src/config.js | 4 ---- 2 files changed, 5 deletions(-) diff --git a/src/RabbitmqTransport.js b/src/RabbitmqTransport.js index 674c1f8..f231959 100644 --- a/src/RabbitmqTransport.js +++ b/src/RabbitmqTransport.js @@ -45,7 +45,6 @@ class RabbitmqTransport extends TransportStream { initialize() { this.name = this.config.name; this.level = this.config.level; - this.bufferMax = this.config.bufferMax; this.debug = this.level === 'debug' && this.config.debug && typeof this.config.debug === 'function' ? this.config.debug : console.debug; diff --git a/src/config.js b/src/config.js index 22992c5..0c64649 100644 --- a/src/config.js +++ b/src/config.js @@ -1,6 +1,5 @@ module.exports = { name: 'rabbitmq-logger', - bufferMax: 1000, level: 'debug', logToConsole: false, url: process.env.WINSTON_RABBITMQ_URL || 'amqp://localhost:5672', @@ -10,9 +9,6 @@ module.exports = { durable: true, autoDelete: false }, - publishOptions: { - contentType: 'application/json' - }, timestamp: function () { return new Date().toISOString(); }