跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • 关于 process.on uncaughtException unhandledRejection 使用的疑问
未分類
31 10 月 2020

关于 process.on uncaughtException unhandledRejection 使用的疑问

关于 process.on uncaughtException unhandledRejection 使用的疑问

資深大佬 : 4771314 3

process.on('uncaughtException',function name(error) {     const msg = error ? Err.getThrowableMessage(error) : '未知错误';     logger.error('全局异常 uncaughtException:' +  msg); });  process.on('unhandledRejection',function name(error) {     const msg = error ? Err.getThrowableMessage(error) : '未知错误';     monitor.report(MONITOR.TEST_PORTRAIT_GLOBAL_REJECTION_COUNT); }); 

server 需要用这种方式保证服务的稳定吗? 使用的是 koa 的框架

大佬有話說 (0)

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具