@@ -233,7 +233,6 @@ public async Task<string> GenerateBase64ImageAsync(
233233 var optionsBytes = Encoding . UTF8 . GetBytes ( optionsJson ) ;
234234 var optionsBase64 = Convert . ToBase64String ( optionsBytes ) ;
235235
236-
237236 // Send request to Charts API to generate base64
238237 var body = new StringContent ( dataJson , Encoding . UTF8 , System . Net . Mime . MediaTypeNames . Application . Json ) ;
239238 var width = model . ChartTemplate . SectionSettings . Width . HasValue ? $ "width={ model . ChartTemplate . SectionSettings . Width . Value } " : "" ;
@@ -244,7 +243,7 @@ public async Task<string> GenerateBase64ImageAsync(
244243 model . ChartTemplate . SectionSettings . ChartType ?? "bar" ,
245244 $ "?{ width } { height } &options={ optionsBase64 } ") ,
246245 body ) ;
247- this . Logger . LogDebug ( "Chart generated, chartTemplateId:{templateId} options:{options} " , model . ChartTemplate . Id , optionsJson ) ;
246+ this . Logger . LogDebug ( "Chart generated, chartTemplateId:{templateId}" , model . ChartTemplate . Id ) ;
248247 return await response . Content . ReadAsStringAsync ( ) ;
249248 }
250249
@@ -499,7 +498,7 @@ await section.ChartTemplates.ForEachAsync(async chart =>
499498 {
500499 chart . SectionSettings ??= new ( ) ;
501500 chart . SectionSettings . Options = MergeChartOptions ( chart . Settings , chart . SectionSettings ) ;
502- var chartOptions = chart . SectionSettings . Options . ToJson ( ) ;
501+ // var chartOptions = chart.SectionSettings.Options.ToJson();
503502
504503 var chartModel = new ChartEngineContentModel (
505504 ReportSectionModel . GenerateChartUid ( section . Id , chart . Id ) ,
@@ -508,7 +507,7 @@ await section.ChartTemplates.ForEachAsync(async chart =>
508507 settings . UseAllContent ? null : content ) ;
509508 var chartRequestModel = new ChartRequestModel ( chartModel ) ;
510509 var base64Image = await this . GenerateBase64ImageAsync ( chartRequestModel ) ;
511- this . Logger . LogDebug ( "Chart generated, reportId:{reportId} instanceId:{instanceId} sectionId:{sectionId} chartId:{chartId} options:{options} " , report . Id , reportInstance ? . Id , section . Id , chart . Id , chartOptions ) ;
510+ this . Logger . LogDebug ( "Chart generated, reportId:{reportId} instanceId:{instanceId} sectionId:{sectionId} chartId:{chartId}" , report . Id , reportInstance ? . Id , section . Id , chart . Id ) ;
512511
513512 // Replace Chart Stubs with the generated image.
514513 body = body . Replace ( ReportSectionModel . GenerateChartUid ( section . Id , chart . Id ) , base64Image ) ;
0 commit comments