Commit bddebf4c by xjewer Committed by Torkel Ödegaard

add a phantomjs execution status to log if errors happens, e.g. OOM killer kills it (#9644)

fixes #9643
parent 89a07002
...@@ -121,7 +121,9 @@ func RenderToPng(params *RenderOpts) (string, error) { ...@@ -121,7 +121,9 @@ func RenderToPng(params *RenderOpts) (string, error) {
done := make(chan error) done := make(chan error)
go func() { go func() {
cmd.Wait() if err := cmd.Wait(); err != nil {
rendererLog.Error("failed to render an image", "error", err)
}
close(done) close(done)
}() }()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment