feat: tempory skip cycle reference check

This commit is contained in:
tjq 2022-10-03 14:49:02 +08:00
parent 7feb25cf8a
commit fe1fad6a7b
2 changed files with 6 additions and 1 deletions

View File

@ -13,6 +13,9 @@ spring.servlet.multipart.file-size-threshold=0
spring.servlet.multipart.max-file-size=209715200
spring.servlet.multipart.max-request-size=209715200
# temporary skip circular references check
spring.main.allow-circular-references=true
###### PowerJob self-owned configuration (The following properties should exist in application.properties only). ######
# Akka ActorSystem port.
oms.akka.port=10086

View File

@ -11,6 +11,8 @@ import tech.powerjob.common.model.LogConfig;
*/
public class OmsStdOutLogger extends AbstractOmsLogger {
private static final String PREFIX = "[PowerJob] [%s] ";
public OmsStdOutLogger(LogConfig logConfig) {
super(logConfig);
}
@ -36,6 +38,6 @@ public class OmsStdOutLogger extends AbstractOmsLogger {
}
private static String buildStdOut(LogLevel logLevel, String messagePattern, Object... args) {
return logLevel.name().concat("-").concat(genLogContent(messagePattern, args));
return String.format(PREFIX, logLevel.name()).concat(genLogContent(messagePattern, args));
}
}