Skip to content

Commit 309bbea

Browse files
committed
Downgrade message to warning. Fixes #10516
1 parent ff4050e commit 309bbea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grails-core/src/main/groovy/grails/boot/config/tools/ClassPathScanner.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ class ClassPathScanner {
138138

139139
if(pkg == "") {
140140
// try the default package in case of a script without recursing into subpackages
141-
log.error("The application defines a Groovy source using the default package. Please move all Groovy sources into a package.")
141+
log.warn("The application defines a Groovy source using the default package. Please move all Groovy sources into a package.")
142142
String pattern = ResourcePatternResolver.CLASSPATH_ALL_URL_PREFIX + "*.class"
143143
scanUsingPattern(resourcePatternResolver, pattern, classLoader, annotationFilter, classes)
144144
}

0 commit comments

Comments
 (0)