From 373513747baa4ce5401a2a7a3ac47b56c3ddaba6 Mon Sep 17 00:00:00 2001 From: Graeme Rocher Date: Tue, 17 Dec 2024 18:52:56 -0400 Subject: [PATCH] improve output --- .../main/java/io/micronaut/context/BeanResolutionTraceMode.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inject/src/main/java/io/micronaut/context/BeanResolutionTraceMode.java b/inject/src/main/java/io/micronaut/context/BeanResolutionTraceMode.java index 3600a56f2a..8490cf37f5 100644 --- a/inject/src/main/java/io/micronaut/context/BeanResolutionTraceMode.java +++ b/inject/src/main/java/io/micronaut/context/BeanResolutionTraceMode.java @@ -165,7 +165,6 @@ void traceBeanResolved( System.out.print(prefix); System.out.print(bean != null ? "✅ " : "❌ "); if (bean != null) { - System.out.print(AnsiColour.formatObject(bean)); if (qualifier != null) { if (qualifier instanceof Named named) { System.out.print(AnsiColour.yellow("@Named(")); @@ -176,6 +175,7 @@ void traceBeanResolved( } System.out.print(" "); } + System.out.print(AnsiColour.formatObject(bean)); } else { System.out.print("Bean of type "); System.out.print(beanType.getBeanTypeString(TypeInformation.TypeFormat.ANSI_SIMPLE));