-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Description
Hi! π
Firstly, thanks for your work on this project! π
Today I used patch-package to patch [email protected] for the project I'm working on.
Please do not include console.logs in production libraries.
Here is the diff that solved my problem:
diff --git a/node_modules/webex-node-bot-framework/lib/websocket.js b/node_modules/webex-node-bot-framework/lib/websocket.js
index 96b65c9..91c70b3 100644
--- a/node_modules/webex-node-bot-framework/lib/websocket.js
+++ b/node_modules/webex-node-bot-framework/lib/websocket.js
@@ -58,11 +58,9 @@ Websocket.prototype.init = function() {
this.framework.webex.memberships.on('updated', (event) => processEvent(this.framework, event, this.name));
this.framework.webex.rooms.on('created', (event) => processEvent(this.framework, event, this.name));
this.framework.webex.rooms.on('updated', (event) => processEvent(this.framework, event, this.name));
- console.log('Listening for webex teams events...');
return when(true);
})
.catch((err) => {
- console.error(`error listening for webex teams events: ${err}`);
return Promise.reject(err);
});
});
@@ -86,7 +84,6 @@ Websocket.prototype.cleanup = function() {
this.framework.webex.memberships.off('updated');
this.framework.webex.rooms.off('created');
this.framework.webex.rooms.off('updated');
- console.log('Stopped listening for webex teams events...');
return when(val);
}).catch(e => console.error(`Failed cleaning up websocket connection: ${e.message}`));
};This issue body was partially generated by patch-package.
Metadata
Metadata
Assignees
Labels
No labels