Skip to content

Commit

Permalink
CMR-10121 puts report logging back
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-zamora committed Oct 1, 2024
1 parent 8e89f5f commit b9ebc8e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
6 changes: 2 additions & 4 deletions common-lib/src/cmr/common/log.clj
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@
always display but are not considered an Error or Fatal event and are already
supported by the base library."
[& body]
nil)
;; `(tiber/report ~@body))
`(tiber/report ~@body))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Log macros like the above but using a format like all the cool kids do
Expand Down Expand Up @@ -130,8 +129,7 @@
always display but are not considered an Error or Fatal event and are already
supported by the base library."
[& body]
nil)
;; `(tiber/reportf ~@body))
`(tiber/reportf ~@body))

(defrecord Logger
[level ; The level to log out
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@
(testing "retrieval of a deleted collection results in a 404"
(let [{:keys [status errors]} (search/get-search-failure-xml-data
(search/retrieve-concept
(:concept-id del-coll)
nil
{:throw-exceptions true
:headers {transmit-config/token-header
user1-token}}))]
(:concept-id del-coll)
nil
{:throw-exceptions true
:headers {transmit-config/token-header
user1-token}}))]
(is (= 404 status))
(is (= [(format "Concept with concept-id [%s] could not be found."
(:concept-id del-coll))]
Expand Down

0 comments on commit b9ebc8e

Please sign in to comment.