@tiledesk/tiledesk-tybot-connector 2.0.10-rc6 → 2.0.10-rc7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiledesk/tiledesk-tybot-connector",
3
- "version": "2.0.10-rc6",
3
+ "version": "2.0.10-rc7",
4
4
  "description": "Tiledesk Tybot connector",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -31,7 +31,7 @@ class DirAskGPTV2 {
31
31
  }
32
32
 
33
33
  execute(directive, callback) {
34
- this.logger.error("Execute AskKnowledgeBase action")
34
+ this.logger.info("Execute AskKnowledgeBase action")
35
35
  winston.debug("DirAskGPTV2 directive: ", directive);
36
36
  let action;
37
37
  if (directive.action) {
@@ -54,10 +54,10 @@ class DirWebRequestV2 {
54
54
  let trueIntentAttributes = action.trueIntentAttributes;
55
55
  let falseIntentAttributes = action.falseIntentAttributes;
56
56
 
57
- winston.debug("DirWebRequestV2 trueIntent " + trueIntent)
58
- winston.debug("DirWebRequestV2 falseIntent " + falseIntent)
59
- winston.debug("DirWebRequestV2 trueIntentAttributes " + trueIntentAttributes)
60
- winston.debug("DirWebRequestV2 falseIntentAttributes " + falseIntentAttributes)
57
+ winston.debug("DirWebRequestV2 trueIntent " + trueIntent)
58
+ winston.debug("DirWebRequestV2 falseIntent " + falseIntent)
59
+ winston.debug("DirWebRequestV2 trueIntentAttributes " + trueIntentAttributes)
60
+ winston.debug("DirWebRequestV2 falseIntentAttributes " + falseIntentAttributes)
61
61
 
62
62
  let requestAttributes = null;
63
63
  requestAttributes =
@@ -139,6 +139,7 @@ class DirWebRequestV2 {
139
139
  }
140
140
  else {
141
141
  this.logger.warn("WebRequest status ", status);
142
+ this.logger.error("WebRequest error ", error);
142
143
  if (falseIntent) {
143
144
  await this.#executeCondition(false, trueIntent, trueIntentAttributes, falseIntent, falseIntentAttributes);
144
145
  callback(true);