mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
[RenderToPng fix] (#4901)
* removing useless code * fix various minor typo * don't silence phantomjs timeout and allow more time * fix gofmt
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package renderer
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
"os"
|
||||
"os/exec"
|
||||
@@ -72,6 +73,7 @@ func RenderToPng(params *RenderOpts) (string, error) {
|
||||
if err := cmd.Process.Kill(); err != nil {
|
||||
log.Error(4, "failed to kill: %v", err)
|
||||
}
|
||||
return "", fmt.Errorf("PhantomRenderer::renderToPng timeout (>%vs)", timeout)
|
||||
case <-done:
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user