0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 23:18:48 -05:00

Don't log duplicate traceback

This commit is contained in:
Andrey Antukh 2023-02-20 12:16:23 +01:00
parent 04b321caae
commit 14b53a4d5e
3 changed files with 9 additions and 8 deletions

View file

@ -3,12 +3,12 @@
<Appenders>
<Console name="console" target="SYSTEM_OUT">
<PatternLayout pattern="[%d{YYYY-MM-dd HH:mm:ss.SSS}] %level{length=1} %logger{36} - %msg%n"
alwaysWriteExceptions="false" />
alwaysWriteExceptions="true" />
</Console>
<RollingFile name="main" fileName="logs/main.log" filePattern="logs/main-%i.log">
<PatternLayout pattern="[%d{YYYY-MM-dd HH:mm:ss.SSS}] %level{length=1} %logger{36} - %msg%n"
alwaysWriteExceptions="false" />
alwaysWriteExceptions="true" />
<Policies>
<SizeBasedTriggeringPolicy size="50M"/>
</Policies>

View file

@ -178,6 +178,7 @@
(print-detail cause)
(recur cause))))))
]
(with-out-str
(print-all cause)))))

View file

@ -243,12 +243,12 @@
(some? trace)
(str "\n" @trace))]
(case level
:trace (.trace ^Logger logger ^String message ^Throwable cause)
:debug (.debug ^Logger logger ^String message ^Throwable cause)
:info (.info ^Logger logger ^String message ^Throwable cause)
:warn (.warn ^Logger logger ^String message ^Throwable cause)
:error (.error ^Logger logger ^String message ^Throwable cause)
:fatal (.error ^Logger logger ^String message ^Throwable cause)
:trace (.trace ^Logger logger ^String message)
:debug (.debug ^Logger logger ^String message)
:info (.info ^Logger logger ^String message)
:warn (.warn ^Logger logger ^String message)
:error (.error ^Logger logger ^String message)
:fatal (.error ^Logger logger ^String message)
(throw (IllegalArgumentException. (str "invalid level:" level))))))))
#?(:cljs