Skip to content

Commit

Permalink
gather plan monitor add table schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Teingi committed Apr 18, 2024
1 parent bb2b71a commit 3db76cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions handler/gather/gather_plan_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def __init__(self, context, gather_pack_dir='./', is_scene=False):
self.tenant_mode = None
self.sys_database = None
self.database = None
self.enable_dump_db = False
self.enable_dump_db = True
self.trace_id = None
self.env = {}
self.STAT_NAME = {}
Expand Down Expand Up @@ -725,7 +725,7 @@ def sql_plan_monitor_detail_template_sql(self):

# sql audit 细节
def report_sql_audit_details(self, sql):
if not self.enable_dump_db:
if self.enable_dump_db:
full_audit_sql_result = self.sys_connector.execute_sql_pretty(sql)
self.__report(
"<div><h2 id='sql_audit_table_anchor'>SQL_AUDIT 信息</h2><div class='v' id='sql_audit_table' style='display: none'>" + full_audit_sql_result.get_html_string() + "</div></div>")
Expand Down

0 comments on commit 3db76cd

Please sign in to comment.