Skip to content

Commit

Permalink
Reverted logback pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
lenguyenthanh committed Dec 1, 2023
1 parent d743d32 commit 35f19a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/src/main/resources/logback.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
<configuration>

<appender name="FILE" class="ch.qos.logback.core.FileAppender">
<file>logs/application.log</file>
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
<pattern>%date [%level] from %logger in %thread - %message%n%xException</pattern>
</encoder>
</appender>

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
<pattern>%date [%level] from %logger in %thread - %message%n%xException</pattern>
</encoder>
</appender>

Expand Down
1 change: 1 addition & 0 deletions app/src/main/scala/Executor.scala
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ object Executor:
coll -> monitor.notAcquired(move, apikey)

def clean(since: Instant): IO[Unit] =
Logger[IO].debug(s"cleaning moves before $since") *>
ref
.flatModify: coll =>
val timedOut = coll.values.filter(_.acquiredBefore(since)).toList
Expand Down

0 comments on commit 35f19a6

Please sign in to comment.