Skip to content
This repository was archived by the owner on Jun 14, 2019. It is now read-only.

Commit 38681b4

Browse files
committed
fix(adapter): fix missing conditional logging
1 parent 022b311 commit 38681b4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-vertxbus",
3-
"version": "6.4.0",
3+
"version": "6.4.1",
44
"description": "AngularJS facade and service acting as a Vert.x SockJS client",
55
"main": "dist/angular-vertxbus.js",
66
"keywords": [

src/lib/adapter/EventBusAdapter.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,9 @@ export default class EventBusAdapter extends BaseAdapter {
186186
// Since vertx-eventbus@3.5.0, the EventBus itself can handle reconnects
187187
if (this.nativeReconnectAvailable && this.instance.reconnectTimerID) {
188188
// 'reconnectTimerID' will be only set if reconnect is enabled
189-
this.$log.debug('[Vert.x EB Stub] Reconnect required, but seems to be handled by EventBus itself');
189+
if (this.options.debugEnabled) {
190+
this.$log.debug('[Vert.x EB Stub] Reconnect required, but seems to be handled by EventBus itself');
191+
}
190192
return;
191193
}
192194
if (this.options.debugEnabled) {

0 commit comments

Comments
 (0)