diff options
author | Tim <contact@bytim.eu> | 2025-06-21 12:05:50 +0200 |
---|---|---|
committer | Tim <contact@bytim.eu> | 2025-06-21 12:05:50 +0200 |
commit | 0fef05a6e926b5dc5db79cc0e86fd189ad166b33 (patch) | |
tree | 66cdd7d782858d38f776299e28d9728f686acd70 /src/chef/utils.clj | |
parent | 8e23d9dade945f87f5fc7fb15042a53a7eeb9a9e (diff) | |
download | chef-0fef05a6e926b5dc5db79cc0e86fd189ad166b33.tar.xz chef-0fef05a6e926b5dc5db79cc0e86fd189ad166b33.zip |
Add debug prints
Diffstat (limited to 'src/chef/utils.clj')
-rw-r--r-- | src/chef/utils.clj | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/chef/utils.clj b/src/chef/utils.clj index 7329737..ff906a2 100644 --- a/src/chef/utils.clj +++ b/src/chef/utils.clj @@ -1,5 +1,6 @@ (ns chef.utils - (:require [ring.util.response :as ruresp])) + (:require [dotenv :as env] + [ring.util.response :as ruresp])) (defn gen-page [title & content] [:html @@ -35,3 +36,7 @@ (->> s (re-matches #"(([A-z0-9 ]*)=([0-9]*) ?([A-z]*)\n?)*") some?))) + +(defn dprintln [& content] + (when (= "TRUE" (env/env "DEBUG_MODE")) + (apply println content))) |