Skip to content
This repository was archived by the owner on Mar 10, 2025. It is now read-only.

Commit acd5678

Browse files
committed
Fix #341, add trace logging to resolveMessage
1 parent a64ac4e commit acd5678

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

grails-app/taglib/grails/plugin/formfields/FormFieldsTagLib.groovy

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ package grails.plugin.formfields
1818

1919
import grails.core.GrailsApplication
2020
import groovy.transform.CompileStatic
21+
import groovy.util.logging.Slf4j
2122
import groovy.xml.MarkupBuilder
2223
import org.apache.commons.lang.StringUtils
2324
import org.grails.buffer.FastStringWriter
@@ -44,6 +45,7 @@ import java.text.NumberFormat
4445

4546
import static FormFieldsTemplateService.toPropertyNameFormat
4647

48+
@Slf4j
4749
class FormFieldsTagLib {
4850
static final namespace = 'f'
4951

@@ -615,6 +617,9 @@ class FormFieldsTagLib {
615617
def message = keysInPreferenceOrder.findResult { key ->
616618
message(code: key, default: null) ?: null
617619
}
620+
if(log.traceEnabled && !message) {
621+
log.trace("i18n missing translation for one of ${keysInPreferenceOrder}")
622+
}
618623
message ?: defaultMessage
619624
}
620625

0 commit comments

Comments
 (0)