From 8d3f41ca10f618ef36d856bd952fa46c28d010c5 Mon Sep 17 00:00:00 2001 From: Thomas LACAZE Date: Fri, 20 Aug 2021 23:03:35 +0200 Subject: [PATCH] add debug print --- utils/chart.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils/chart.go b/utils/chart.go index 113533c..e7da099 100644 --- a/utils/chart.go +++ b/utils/chart.go @@ -7,6 +7,7 @@ import ( "github.com/pkg/errors" "github.com/wcharczuk/go-chart" "github.com/wcharczuk/go-chart/drawing" + "go.uber.org/zap" "github.com/lacazethomas/wakapi-stats/models" ) @@ -42,6 +43,8 @@ func CreateStatsDiagram(c []models.ColorSummaryItem) ([]byte, error) { } } + zap.S().Debug("chartItems", zap.Any("chartItems", chartItems)) + return createPieFromChartValues(chartItems) }