@autofleet/rabbit 2.5.0-beta.6 → 2.5.0-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -125,10 +125,6 @@ class RabbitMq {
125
125
  }
126
126
  static getPublishOptions(customHeaders = {}) {
127
127
  const trace = outbreak_1.getCurrentContext();
128
- logger_1.default.info('ANKRI getPublishOptions', {
129
- trace,
130
- context: Array.from(trace.context),
131
- });
132
128
  return {
133
129
  timestamp: moment_1.default().unix(),
134
130
  headers: {
@@ -297,17 +293,7 @@ class RabbitMq {
297
293
  });
298
294
  }
299
295
  async publish(exchange, content, customHeaders) {
300
- const trace = outbreak_1.getCurrentContext();
301
- logger_1.default.info('ANKRI publish', {
302
- trace,
303
- context: Array.from(trace.context),
304
- });
305
296
  return wrapSetImmediate(async () => {
306
- const trace2 = outbreak_1.getCurrentContext();
307
- logger_1.default.info('ANKRI publish inside wrapSetImmediate', {
308
- trace: trace2,
309
- context: Array.from(trace.context),
310
- });
311
297
  RabbitMq.validateName('exchange', exchange);
312
298
  const channel = await this.assertChannel();
313
299
  await this.assertExchange(exchange);
@@ -315,17 +301,7 @@ class RabbitMq {
315
301
  });
316
302
  }
317
303
  async sendToQueue(queue, content, options, customHeaders) {
318
- const trace = outbreak_1.getCurrentContext();
319
- logger_1.default.info('ANKRI sendToQueue', {
320
- trace,
321
- context: Array.from(trace.context),
322
- });
323
304
  return wrapSetImmediate(async () => {
324
- const trace2 = outbreak_1.getCurrentContext();
325
- logger_1.default.info('ANKRI sendToQueue inside wrapSetImmediate', {
326
- trace: trace2,
327
- context: Array.from(trace.context),
328
- });
329
305
  RabbitMq.validateName('queue', queue);
330
306
  const channel = await this.assertChannel();
331
307
  await this.assertQueue(queue, options);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autofleet/rabbit",
3
- "version": "2.5.0-beta.6",
3
+ "version": "2.5.0-beta.7",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/src/index.ts CHANGED
@@ -104,10 +104,6 @@ class RabbitMq implements IAfRabbitMq {
104
104
 
105
105
  static getPublishOptions(customHeaders: CustomMessageHeaders = {}) {
106
106
  const trace = getCurrentContext();
107
- logger.info('ANKRI getPublishOptions', {
108
- trace,
109
- context: Array.from(trace.context),
110
- });
111
107
  return {
112
108
  timestamp: moment().unix(),
113
109
  headers: {
@@ -417,17 +413,7 @@ class RabbitMq implements IAfRabbitMq {
417
413
  }
418
414
 
419
415
  async publish(exchange: string, content: any, customHeaders?: any) : Promise<boolean> {
420
- const trace = getCurrentContext();
421
- logger.info('ANKRI publish', {
422
- trace,
423
- context: Array.from(trace.context),
424
- });
425
416
  return wrapSetImmediate(async () => {
426
- const trace2 = getCurrentContext();
427
- logger.info('ANKRI publish inside wrapSetImmediate', {
428
- trace: trace2,
429
- context: Array.from(trace.context),
430
- });
431
417
  RabbitMq.validateName('exchange', exchange);
432
418
  const channel: ChannelWrapper = await this.assertChannel();
433
419
  await this.assertExchange(exchange);
@@ -438,17 +424,7 @@ class RabbitMq implements IAfRabbitMq {
438
424
  }
439
425
 
440
426
  async sendToQueue(queue: string, content: any, options?: any, customHeaders?: any) : Promise<boolean> {
441
- const trace = getCurrentContext();
442
- logger.info('ANKRI sendToQueue', {
443
- trace,
444
- context: Array.from(trace.context),
445
- });
446
427
  return wrapSetImmediate(async () => {
447
- const trace2 = getCurrentContext();
448
- logger.info('ANKRI sendToQueue inside wrapSetImmediate', {
449
- trace: trace2,
450
- context: Array.from(trace.context),
451
- });
452
428
  RabbitMq.validateName('queue', queue);
453
429
  const channel: ChannelWrapper = await this.assertChannel();
454
430
  await this.assertQueue(queue, options);