我想通过属性 notifyReleaseStage 将错误发送到我创建的阶段
const app = express();
const bugsnag = require('@bugsnag/js');
const bugsnagClient = bugsnag({
apiKey: process.env.bugsnag_api_key,
onUnhandledRejection: function (err) {
log("Unhandled Rejection >>>>>> reason >>>>>>", err.message)
},
notifyReleaseStages: ['local']
});
bugsnagClient.use(require('@bugsnag/plugin-express'));
const { requestHandler, errorHandler } = bugsnagClient.getPlugin('express');
app.use(requestHandler);
app.use(errorHandler)
但是当我抛出错误时,它会在控制台中写入:
[bugsnag] 由于 releaseStage/notifyReleaseStages 配置未发送报告