Skip to content

Commit

Permalink
OPHY-711: Increase logging for payment service integration
Browse files Browse the repository at this point in the history
  • Loading branch information
anttu committed Sep 25, 2024
1 parent 1c208ed commit 1c7c7d1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions server/src/clojure/oph/va/virkailija/rondo_service.clj
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,12 @@
(func :method :put :file file :path (:remote_path config)
:config config)]
(if (nil? result)
{:success true}
{:success false :value result}))
(do
(log/info (format "Sent %s to payment service" file))
{:success true})
(do
(log/error (format "Failed to send %s to payment service" file))
{:success false :value result})))
(do
(log/info (format "Would send %s to %s" file (:host-ip config)))
{:success true}))))
Expand Down

0 comments on commit 1c7c7d1

Please sign in to comment.