Skip to content

Commit 2f310b4

Browse files
authored
use error level for error log file
1 parent d4f1dc5 commit 2f310b4

File tree

1 file changed

+1
-2
lines changed
  • common/src/main/java/haveno/common/app

1 file changed

+1
-2
lines changed

common/src/main/java/haveno/common/app/Log.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ public static void setup(String fileName) {
6767
appender.start();
6868

6969
// log errors in separate file
70-
// not working as expected still.... damn logback...
7170
PatternLayoutEncoder errorEncoder = new PatternLayoutEncoder();
7271
errorEncoder.setContext(loggerContext);
7372
errorEncoder.setPattern("%d{MMM-dd HH:mm:ss.SSS} [%thread] %-5level %logger: %msg%n%ex");
@@ -92,7 +91,7 @@ public static void setup(String fileName) {
9291
errorTriggeringPolicy.start();
9392

9493
ThresholdFilter thresholdFilter = new ThresholdFilter();
95-
thresholdFilter.setLevel("WARN");
94+
thresholdFilter.setLevel("ERROR");
9695
thresholdFilter.start();
9796

9897
errorAppender.setRollingPolicy(errorRollingPolicy);

0 commit comments

Comments
 (0)