This is an automated email from the ASF dual-hosted git repository.

hugh pushed a commit to branch hugh-2
in repository https://gitbox.apache.org/repos/asf/superset.git

commit a24de5d3972e15836d8a1275e4afdac31bd1fc77
Author: hughhhh <[email protected]>
AuthorDate: Thu Aug 11 14:26:51 2022 -0400

    fix
---
 superset/charts/data/api.py          | 6 ++++++
 superset/reports/commands/execute.py | 5 +++++
 2 files changed, 11 insertions(+)

diff --git a/superset/charts/data/api.py b/superset/charts/data/api.py
index c20fdde6fd..6a350d704e 100644
--- a/superset/charts/data/api.py
+++ b/superset/charts/data/api.py
@@ -339,6 +339,12 @@ class ChartDataRestApi(ChartRestApi):
         # Post-process the data so it matches the data presented in the chart.
         # This is needed for sending reports based on text charts that do the
         # post-processing of data, eg, the pivot table.
+        logger.info(
+            "report_type: %s report_format: %s result: %s",
+            result_type,
+            result_format,
+            result,
+        )
         if result_type == ChartDataResultType.POST_PROCESSED:
             result = apply_post_process(result, form_data, datasource)
 
diff --git a/superset/reports/commands/execute.py 
b/superset/reports/commands/execute.py
index ad1b1edcd2..9c93b353a1 100644
--- a/superset/reports/commands/execute.py
+++ b/superset/reports/commands/execute.py
@@ -154,6 +154,11 @@ class BaseReportState:
         Get the url for this report schedule: chart or dashboard
         """
         force = "true" if self._report_schedule.force_screenshot else "false"
+        logger.info(
+            "chart_id: %d report_format: %s",
+            self._report_schedule.chart_id,
+            result_format,
+        )
         if self._report_schedule.chart:
             if result_format in {
                 ChartDataResultFormat.CSV,

Reply via email to