log phantomjs output even if it timeout and include orgId when render alert

This commit is contained in:
Marcus Efraimsson
2019-03-06 11:58:27 +01:00
parent 63e7330fa0
commit 36f3accf0d
3 changed files with 25 additions and 7 deletions

View File

@@ -138,7 +138,7 @@ func (n *notificationService) uploadImage(context *EvalContext) (err error) {
return err
}
renderOpts.Path = fmt.Sprintf("d-solo/%s/%s?panelId=%d", ref.Uid, ref.Slug, context.Rule.PanelId)
renderOpts.Path = fmt.Sprintf("d-solo/%s/%s?orgId=%d&panelId=%d", ref.Uid, ref.Slug, context.Rule.OrgId, context.Rule.PanelId)
result, err := n.renderService.Render(context.Ctx, renderOpts)
if err != nil {