From c9184bfd53fd20d214d03d32579a1b8a2fceffc8 Mon Sep 17 00:00:00 2001 From: Mats Bovin Date: Fri, 15 Dec 2023 11:07:23 +0100 Subject: [PATCH] Replace println with log statements --- .../services/au/org/ala/bie/WebClientService.groovy | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/grails-app/services/au/org/ala/bie/WebClientService.groovy b/grails-app/services/au/org/ala/bie/WebClientService.groovy index 180f7ce..fa04612 100755 --- a/grails-app/services/au/org/ala/bie/WebClientService.groovy +++ b/grails-app/services/au/org/ala/bie/WebClientService.groovy @@ -45,7 +45,7 @@ class WebClientService implements InitializingBean { throw e else{ def error = [error: "Timed out calling web service. URL= ${url}."] - println error.error + log.error error.error return new groovy.json.JsonBuilder( error ).toString() } } catch (Exception e) { @@ -53,7 +53,7 @@ class WebClientService implements InitializingBean { throw e; else{ def error = [error: "Failed calling web service. ${e.getClass()} ${e.getMessage()} URL= ${url}."] - println error.error + log.info error.error return new groovy.json.JsonBuilder( error ).toString() } } @@ -158,11 +158,11 @@ class WebClientService implements InitializingBean { return [error: null, resp: JSON.parse(resp)] } catch (SocketTimeoutException e) { def error = [error: "Timed out calling web service POST. URL= ${url}."] - println error.error + log.error error.error return error } catch (Exception e) { def error = [error: "Failed calling web service POST. ${e.getClass()} ${e.getMessage()} ${e} URL= ${url}."] - println error.error + log.info error.error return error } }