Skip to content

Commit 4c0a4cb

Browse files
committed
Polish
1 parent 390554a commit 4c0a4cb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/graphql/GraphQlAutoConfiguration.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
import org.springframework.context.annotation.Bean;
4242
import org.springframework.core.io.Resource;
4343
import org.springframework.core.io.support.ResourcePatternResolver;
44+
import org.springframework.core.log.LogMessage;
4445
import org.springframework.graphql.ExecutionGraphQlService;
4546
import org.springframework.graphql.data.method.annotation.support.AnnotatedControllerConfigurer;
4647
import org.springframework.graphql.execution.BatchLoaderRegistry;
@@ -111,7 +112,7 @@ private List<Resource> resolveSchemaResources(ResourcePatternResolver resolver,
111112
return Arrays.asList(resolver.getResources(pattern));
112113
}
113114
catch (IOException ex) {
114-
logger.debug("Could not resolve schema location: '" + pattern + "'", ex);
115+
logger.debug(LogMessage.format("Could not resolve schema location: '%s'", pattern), ex);
115116
return Collections.emptyList();
116117
}
117118
}

0 commit comments

Comments
 (0)