@tiledesk/tiledesk-server 2.10.98 โ†’ 2.10.100

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/CHANGELOG.md CHANGED
@@ -5,6 +5,12 @@
5
5
  ๐Ÿš€ IN PRODUCTION ๐Ÿš€
6
6
  (https://www.npmjs.com/package/@tiledesk/tiledesk-server/v/2.3.77)
7
7
 
8
+ # 2.10.100
9
+ - Update: removed verbose logs
10
+
11
+ # 2.10.99
12
+ - Update: messenger-connector to 0.1.24
13
+
8
14
  # 2.10.98
9
15
  - Update: whatsapp-connector to 0.1.84
10
16
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tiledesk/tiledesk-server",
3
3
  "description": "The Tiledesk server module",
4
- "version": "2.10.98",
4
+ "version": "2.10.100",
5
5
  "scripts": {
6
6
  "start": "node ./bin/www",
7
7
  "pretest": "mongodb-runner start",
@@ -44,7 +44,7 @@
44
44
  "@tiledesk/tiledesk-dialogflow-connector": "^1.8.4",
45
45
  "@tiledesk/tiledesk-json-rules-engine": "^4.0.3",
46
46
  "@tiledesk/tiledesk-kaleyra-proxy": "^0.1.7",
47
- "@tiledesk/tiledesk-messenger-connector": "^0.1.23",
47
+ "@tiledesk/tiledesk-messenger-connector": "^0.1.24",
48
48
  "@tiledesk/tiledesk-rasa-connector": "^1.0.10",
49
49
  "@tiledesk/tiledesk-telegram-connector": "^0.1.14",
50
50
  "@tiledesk/tiledesk-tybot-connector": "^2.0.19",
package/routes/request.js CHANGED
@@ -569,7 +569,8 @@ router.put('/:requestid/assign', function (req, res) {
569
569
 
570
570
  return res.json(updatedRequest);
571
571
  }).catch(function (error) {
572
- winston.error('Error changing the department.', error)
572
+ // TODO: error log removed due to attempt to reduces logs when no department is found
573
+ winston.verbose('Error changing the department.', error)
573
574
  return res.status(500).send({ success: false, msg: 'Error changing the department.' });
574
575
  })
575
576
  });
@@ -585,7 +586,8 @@ router.put('/:requestid/departments', function (req, res) {
585
586
 
586
587
  return res.json(updatedRequest);
587
588
  }).catch(function (error) {
588
- winston.error('Error changing the department.', error)
589
+ // TODO: error log removed due to attempt to reduces logs when no department is found
590
+ winston.verbose('Error changing the department.', error)
589
591
  return res.status(500).send({ success: false, msg: 'Error changing the department.' });
590
592
  })
591
593
  });
@@ -619,7 +621,8 @@ router.put('/:requestid/agent', async (req, res) => {
619
621
 
620
622
  return res.json(updatedRequest);
621
623
  }).catch(function (error) {
622
- winston.error('Error changing the department.', error)
624
+ // TODO: error log removed due to attempt to reduces logs when no department is found
625
+ winston.verbose('Error changing the department.', error)
623
626
  return res.status(500).send({ success: false, msg: 'Error changing the department.' });
624
627
  })
625
628
 
@@ -240,7 +240,8 @@ getOperators(departmentid, projectid, nobot, disableWebHookCall, context) {
240
240
  }
241
241
  // console.log("department", department);
242
242
  if (!department) {
243
- winston.error("Department not found for projectid: "+ projectid +" for query: ", query, context);
243
+ // TODO: error log removed due to attempt to reduces logs when no department is found
244
+ winston.verbose("Department not found for projectid: "+ projectid +" for query: ", query, context);
244
245
  return reject({ success: false, msg: 'Department not found for projectid: '+ projectid +' for query: ' + JSON.stringify(query) });
245
246
  }
246
247
  // console.log('OPERATORS - ยปยปยป DETECTED ROUTING ', department.routing)
@@ -562,7 +563,8 @@ getDefaultDepartment(projectid) {
562
563
  }
563
564
  // console.log("department", department);
564
565
  if (!department) {
565
- winston.error("Department not found for projectid: "+ projectid +" for query: ", query, context);
566
+ // TODO: error log removed due to attempt to reduces logs when no department is found
567
+ winston.verbose("Department not found for projectid: "+ projectid +" for query: ", query, context);
566
568
  return reject({ success: false, msg: 'Department not found for projectid: '+ projectid +' for query: ' + JSON.stringify(query) });
567
569
  }
568
570
  winston.debug('department ', department);