Skip to content

Commit 9557279

Browse files
committed
1 parent 74f6100 commit 9557279

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

demo7/grails-app/conf/logback-spring.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<springProfile name="development">
2121
<logger name="StackTrace" level="ERROR" additivity="false" />
2222

23-
<!-- <logger name="com.example" level="DEBUG"/>-->
23+
<logger name="com.example.SampleController" level="INFO"/>
2424

2525
<!-- <logger name="org.hibernate.SQL" level="DEBUG"/>-->
2626
<!-- <logger name="org.hibernate.type.descriptor.sql.BasicBinder" level="TRACE"/>-->

demo7/grails-app/controllers/com/example/SampleController.groovy

+9
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,13 @@ class SampleController {
1414
redirect action: 'index'
1515
}
1616

17+
def failedBinding() {
18+
def sample = new Sample()
19+
sample.with {
20+
name = params.name
21+
}
22+
log.info "sample.name '${sample.name}' should not be null."
23+
respond sample
24+
}
25+
1726
}

0 commit comments

Comments
 (0)