Skip to content

Commit

Permalink
initialize fonts after logging is set up
Browse files Browse the repository at this point in the history
verinice-veo#2655
  • Loading branch information
jochenkemnade committed Dec 2, 2024
1 parent 2ed8c0d commit 3f682a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/veo/reporting/VeoReportingApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ public class VeoReportingApplication {
private static final Logger logger = LoggerFactory.getLogger(VeoReportingApplication.class);

public static void main(String[] args) throws IOException {
XRLog.setLoggerImpl(new Slf4jLogger());
FontResourceManager.reInit(null);
System.setProperty("java.util.PropertyResourceBundle.encoding", StandardCharsets.UTF_8.name());
XRLog.setLoggerImpl(new Slf4jLogger());
@SuppressWarnings("PMD.CloseResource")
ConfigurableApplicationContext ctx = SpringApplication.run(VeoReportingApplication.class, args);
FontResourceManager.reInit(null);
if (Stream.of(ctx.getEnvironment().getActiveProfiles()).anyMatch("demo"::equals)) {
Demo.runDemo(ctx);
}
Expand Down

0 comments on commit 3f682a0

Please sign in to comment.