Skip to content

Commit

Permalink
Added fn to ids package for local debug printing
Browse files Browse the repository at this point in the history
  • Loading branch information
mluypaert committed Sep 10, 2020
1 parent 31666f4 commit d6b6329
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ids/src/wormbase/ids/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
[clojure.walk :as w]
[datomic.api :as d]))

(def log-file "/home/mlp/logs/wormbase-ids-core.log")
(spit log-file "")
(defn debug-log
[log-str]
(spit log-file (str log-str "\n") :append true))

(defn attr-schema-unique? [db attr]
(try
(let [s-attr (:db/unique (d/entity db attr))]
Expand Down

0 comments on commit d6b6329

Please sign in to comment.