From 39673e056a4bccaae2a7e53c40e6714af4f3377b Mon Sep 17 00:00:00 2001 From: Mats Bovin Date: Fri, 14 Jun 2024 09:05:58 +0200 Subject: [PATCH] Use logging framework properly in LogService --- grails-app/services/au/org/ala/images/LogService.groovy | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/grails-app/services/au/org/ala/images/LogService.groovy b/grails-app/services/au/org/ala/images/LogService.groovy index 10aec813..909e185c 100644 --- a/grails-app/services/au/org/ala/images/LogService.groovy +++ b/grails-app/services/au/org/ala/images/LogService.groovy @@ -5,16 +5,15 @@ class LogService { static transactional = false def log(String message) { - log.info "${message}" + log.info message } def error(String message, Throwable error) { - log(message); - log("Error: ${error.message}") + log.error message, error } def debug(String message) { - log("DEBUG: ${message}"); + log.debug message } }