Skip to content

Commit

Permalink
Use logging framework properly in LogService
Browse files Browse the repository at this point in the history
  • Loading branch information
matsbov committed Jun 14, 2024
1 parent 182b7ae commit 39673e0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions grails-app/services/au/org/ala/images/LogService.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

}

0 comments on commit 39673e0

Please sign in to comment.