Skip to content

Commit 527ebd3

Browse files
committed
silence log and improve log message
1 parent 018132e commit 527ebd3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

applications/spring-shell/src/main/resources/application.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ sbm.gitSupportEnabled=true
2121
logging.level.org=ERROR
2222
logging.level.org.springframework.sbm.logging.MethodCallTraceInterceptor=DEBUG
2323
logging.level.org.springframework.sbm.logging.StopWatchTraceInterceptor=DEBUG
24-
logging.level.org.springframework=WARN
24+
logging.level.org.springframework=ERROR
2525
logging.level.org.openrewrite=ERROR
2626
logging.level.org.springframework.sbm=ERROR
2727
#logging.file.path=${java.io.tmpdir}/${spring.application.name}.log

components/sbm-core/src/main/java/org/springframework/sbm/build/impl/RewriteMavenArtifactDownloader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public RewriteMavenArtifactDownloader() {
5252
.readTimeout(2, TimeUnit.SECONDS)
5353
.build()
5454
),
55-
(t) -> log.error("Error while downloading dependencies", t)
55+
(t) -> log.warn("Error while downloading dependencies", t)
5656
);
5757

5858
// super(new LocalMavenArtifactCache(Paths.get(System.getProperty("user.home"), ".m2", "repository")),

components/sbm-core/src/main/java/org/springframework/sbm/engine/recipe/Action.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ default void applyWithStatusEvent(ProjectContext context) {
3636
try {
3737
applyInternal(context);
3838
} catch(Exception e) {
39-
String message = "'" + this.getDescription() + "' failed: " + e.getMessage();
39+
String message = "Action ["+this.getClass().getSimpleName()+"] '" + this.getDescription() + "' failed: " + e.getMessage();
4040
if (eventPublisher != null) {
4141
eventPublisher.publishEvent(new ActionFailedEvent(message));
4242
}

0 commit comments

Comments
 (0)