     :dimension value))
 
 (defn- value-for-tag [tag params]
-  (parse-value-for-type (:type tag) (or (u/prog1 (param-value-for-tag tag params)
-                                          (when <>
-                                            (println "param-value-for-tag" <>)))
-                                        (u/prog1 (dimension-value-for-tag tag)
-                                          (when <>
-                                            (println "dimension-value-for-tag" (u/pprint-to-str <>))))
+  (parse-value-for-type (:type tag) (or (param-value-for-tag tag params)
+                                        (dimension-value-for-tag tag)
                                         (default-value-for-tag tag))))
 
 (defn- query->params-map [{tags :template_tags, params :parameters}]

  String        (->sql [this]
                  (str \' (s/replace this #"'" "\\\\'") \'))
  FieldInstance (->sql [this]
                  (println "FieldInstance -> SQL:" (u/pprint-to-str 'blue this))
                  ;; For SQL drivers, generate appropriate qualified & quoted identifier
                  ;; Mative param substitution is only enabled for SQL for the time being. We'll need to tweak this a bit so when we add support for other DBs in the future.
                  (first (hsql/format (apply hsql/qualify (field/qualified-name-components this))

  (when-let [dimension (:dimension tag)]
    (if-let [field-id (dimension->field-id dimension)]
      (db/select-one [Field :name :parent_id :table_id], :id field-id)
      (throw (Exception. (str "Don't know how to handle dimension: " dimension))))))

(defn- default-value-for-tag [{:keys [default display_name required]}]
  (or default
