Alan-Gomes / mcspring-boot

A Spring boot starter for Bukkit/Spigot/PaperSpigot plugins
MIT License
78 stars 25 forks source link

Extra newline in console output #11

Closed CC007 closed 5 years ago

CC007 commented 5 years ago

On my windows 10 machine, when I start a spigot 1.13.2 server with a plugin that uses mcspring-boot, the output will contain the spring boot info and debug logs, as expected (I saw the other issue how to configure this). What is unexpected however is that between every log output, there is an extra newline, like so:

...
[20:16:36 INFO]: 20:16:36.316 [Server thread] DEBUG org.springframework.boot.SpringApplication - Running with Spring Boot, Spring

[20:16:36 INFO]: 20:16:36.317 [Server thread] INFO org.springframework.boot.SpringApplication - No active profile set, falling back to default profiles: default

[20:16:36 INFO]: 20:16:36.317 [Server thread] DEBUG org.springframework.boot.SpringApplication - Loading source class com.github.cc007.headsplugin.config.Application

[20:16:36 INFO]: 20:16:36.379 [Server thread] DEBUG org.springframework.context.annotation.AnnotationConfigApplicationContext - Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@6e9af864

[20:16:36 INFO]: 20:16:36.398 [Server thread] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.context.annotation.internalConfigurationAnnotationProcessor'
...
Alan-Gomes commented 5 years ago

I really think this is a incompatibility with spring boot in Windows. But make sure there's not %n at the end of your log configuration.

Alan-Gomes commented 5 years ago

I am closing this issue due to the lack of response. You can reopen it if my answer has not solved your problem :)