wgt-node-utils 0.0.45 → 0.0.46
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/dist/bundle.js +1 -1
- package/package.json +1 -1
- package/src/index.js +1 -6
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -356,8 +356,6 @@ class wgtNodeUtils {
|
|
|
356
356
|
* @components 项目名称
|
|
357
357
|
*/
|
|
358
358
|
appendLog = (title, ENV, components = '', err) => {
|
|
359
|
-
console.log('------------------err----------------', err)
|
|
360
|
-
console.error(`=========================={\"text\":\"<b>前端容器node报错</b> \\n components: ${components}\\n env: ${ENV}, \\n message: ${title} [${err.config.method}]: ${err.config.url}\"}`)
|
|
361
359
|
try {
|
|
362
360
|
if (!err) {
|
|
363
361
|
console.warn(`============${new Date().toLocaleString()}===========`);
|
|
@@ -372,13 +370,10 @@ class wgtNodeUtils {
|
|
|
372
370
|
} else {
|
|
373
371
|
console.error(`============${new Date().toLocaleString()}===========`);
|
|
374
372
|
console.error(`${title} ${err}`);
|
|
375
|
-
|
|
376
|
-
console.error(`=========================={\"text\":\"<b>前端容器node报错</b> \\n components: ${components}\\n env: ${ENV}, \\n message: ${title} [${err.config.method}]: ${err.config.url}\"}`)
|
|
377
|
-
|
|
378
373
|
this.sendFeiShu(`${title} ${err}`, ENV, components);
|
|
379
374
|
}
|
|
380
375
|
} catch (e) {
|
|
381
|
-
console.log(e, '
|
|
376
|
+
console.log(e, '=============catch==============')
|
|
382
377
|
}
|
|
383
378
|
};
|
|
384
379
|
/**
|