We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.2410
线上环境日志中有工单通知panic报错
GetReportPushConfigInProjectByType 返回 err 为非 nil 的情况下,未执行return操作,导致 if !config.Enabled { panic 错误
func NotifyWorkflow(projectId, workflowId string, wt WorkflowNotifyType) { logger := log.NewEntry() s := model.GetStorage() // 确认推送功能是否开启 config, err := s.GetReportPushConfigInProjectByType(projectId, model.TypeWorkflow) if err != nil { logger.Errorf("get report push config failed: %v", err) } if !config.Enabled { return }
The text was updated successfully, but these errors were encountered:
taolx0
No branches or pull requests
版本信息(Version)
3.2410
问题描述(Describe)
线上环境日志中有工单通知panic报错
截图或日志(Log)
如何复现(To Reproduce)
问题原因
GetReportPushConfigInProjectByType 返回 err 为非 nil 的情况下,未执行return操作,导致 if !config.Enabled { panic 错误
解决方案
变更影响面
受影响的模块或功能
外部引用的潜在问题或风险
版本兼容性
测试建议
The text was updated successfully, but these errors were encountered: