Skip to content

Commit 23a18f5

Browse files
committed
Case insensitive log level configuration
1 parent 5047f70 commit 23a18f5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

on-demand/on-demand-spring-boot-starter-grpc/src/main/java/no/entur/logging/cloud/spring/ondemand/grpc/GrpcOndemandLoggingAutoConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public GrpcLoggingScopeContextInterceptor grpcLoggingScopeContextInterceptor(Ond
8181
}
8282

8383
protected Level toLevel(String level) {
84-
switch (level) {
84+
switch (level.toLowerCase()) {
8585
case ("trace"):
8686
return Level.TRACE;
8787
case ("debug"):

on-demand/on-demand-spring-boot-starter-web/src/main/java/no/entur/logging/cloud/spring/ondemand/web/GcpWebOndemandLoggingAutoConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ public HttpLoggingScopeFilter toFilter(String matcher, OndemandSuccess success,
226226

227227

228228
protected Level toLevel(String level) {
229-
switch (level) {
229+
switch (level.toLowerCase()) {
230230
case ("trace"):
231231
return Level.TRACE;
232232
case ("debug"):

0 commit comments

Comments
 (0)