Skip to content
Snippets Groups Projects
Commit 040f6011 authored by Cam Saül's avatar Cam Saül
Browse files

Merge pull request #2710 from metabase/check-before-logging-honeysql-form

Check whether we should log HoneySQL form before doing so :honey_pot:
parents e5c36515 15beada4
No related branches found
No related tags found
No related merge requests found
......@@ -270,7 +270,8 @@
[driverr {inner-query :query}]
{:pre [(map? inner-query)]}
(u/prog1 (apply-clauses driverr {} inner-query)
(log/debug "HoneySQL Form: 🍯\n" (u/pprint-to-str 'cyan <>))))
(when-not qp/*disable-qp-logging*
(log/debug "HoneySQL Form: 🍯\n" (u/pprint-to-str 'cyan <>)))))
(defn mbql->native
"Transpile MBQL query into a native SQL statement."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment