wgt-node-utils 0.0.42 → 0.0.44
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 +1 -1
- package/src/index.js +3 -3
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -320,7 +320,7 @@ class wgtNodeUtils {
|
|
|
320
320
|
*/
|
|
321
321
|
sendFeiShu = (message, ENV, components = '') => {
|
|
322
322
|
const logMessage = `{'text':'<b>前端容器node报错</b> \\n components: ${components}\\n env: ${ENV}, \\n message: ${message}'}`;
|
|
323
|
-
|
|
323
|
+
console.log(logMessage, '=============logMessage================')
|
|
324
324
|
// 发送消息
|
|
325
325
|
this.client.im.message.create({
|
|
326
326
|
params: {
|
|
@@ -368,14 +368,14 @@ class wgtNodeUtils {
|
|
|
368
368
|
console.error(`${title} [${err.config.method}]: ${err.config.url}`);
|
|
369
369
|
console.error(`request: {params: ${JSON.stringify(err.config.params)}, data: ${JSON.stringify(err.config.data)}}`);
|
|
370
370
|
console.error(`response: ${JSON.stringify(err.response)}`);
|
|
371
|
-
this.sendFeiShu(`${title} [${err.config.method}]: ${err.config.url}`, ENV, components);
|
|
371
|
+
// this.sendFeiShu(`${title} [${err.config.method}]: ${err.config.url}`, ENV, components);
|
|
372
372
|
} else {
|
|
373
373
|
console.error(`============${new Date().toLocaleString()}===========`);
|
|
374
374
|
console.error(`${title} ${err}`);
|
|
375
375
|
|
|
376
376
|
console.error(`=========================={\"text\":\"<b>前端容器node报错</b> \\n components: ${components}\\n env: ${ENV}, \\n message: ${title} [${err.config.method}]: ${err.config.url}\"}`)
|
|
377
377
|
|
|
378
|
-
this.sendFeiShu(`${title} ${err}`, ENV, components);
|
|
378
|
+
// this.sendFeiShu(`${title} ${err}`, ENV, components);
|
|
379
379
|
}
|
|
380
380
|
} catch (e) {
|
|
381
381
|
|