From 1c7c7d1f1ed196c0efe0a5e0bd39eb37dcb2cfe9 Mon Sep 17 00:00:00 2001 From: Antero Fagerstedt Date: Wed, 25 Sep 2024 14:07:28 +0300 Subject: [PATCH] OPHY-711: Increase logging for payment service integration --- server/src/clojure/oph/va/virkailija/rondo_service.clj | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/server/src/clojure/oph/va/virkailija/rondo_service.clj b/server/src/clojure/oph/va/virkailija/rondo_service.clj index 4ab60afe30..12adf6d656 100644 --- a/server/src/clojure/oph/va/virkailija/rondo_service.clj +++ b/server/src/clojure/oph/va/virkailija/rondo_service.clj @@ -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}))))