Skip to content

Commit 0454ea5

Browse files
committed
Additional logging to aid in debugging.
1 parent 0c85546 commit 0454ea5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

component-chatbot.js

+3
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ module.exports = function(RED) {
3030
if(config.unique && config.unique !== ''){
3131

3232
const uniqueID = config.unique.split('/')[0];
33+
debug(`Registering route: /nr-component-chatbot/${uniqueID}`);
3334

3435
RED.httpNode.post(`/nr-component-chatbot/${uniqueID}`, function(req, res) {
3536

@@ -55,6 +56,8 @@ module.exports = function(RED) {
5556

5657
});
5758

59+
} else {
60+
debug(`'config' failed to meet requirements to register route. config.unique is ${config.unique}`);
5861
}
5962

6063
});

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "node-red-contrib-web-components",
3-
"version": "0.2.12",
3+
"version": "0.2.13",
44
"description": "Expose useful functionality to Node-RED developers through the magic of Web Components",
55
"scripts": {
66
"test": "echo \"Error: no test specified\" && exit 1"

0 commit comments

Comments
 (0)