浏览代码

Image rendering: Add deprecation warning when PhantomJS is used for rendering images (#18933)

* Add deprecation warning

* Update pkg/services/rendering/rendering.go

Co-Authored-By: Marcus Efraimsson <marcus.efraimsson@gmail.com>
Sofia Papagiannaki 6 年之前
父节点
当前提交
7f40dc5317
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      pkg/services/rendering/rendering.go

+ 2 - 0
pkg/services/rendering/rendering.go

@@ -68,6 +68,8 @@ func (rs *RenderingService) Run(ctx context.Context) error {
 
 	if plugins.Renderer == nil {
 		rs.log.Info("Backend rendering via phantomJS")
+		rs.log.Warn("phantomJS is deprecated and will be removed in a future release. " +
+			"You should consider migrating from phantomJS to grafana-image-renderer plugin.")
 		rs.renderAction = rs.renderViaPhantomJS
 		<-ctx.Done()
 		return nil