Skip to content

Commit

Permalink
removed the log about logback status at startup
Browse files Browse the repository at this point in the history
  • Loading branch information
Filipponi, Luca (ELS) committed Sep 29, 2019
1 parent 62565ee commit af7b100
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,8 @@ You can build your own jar using sbt:
sbt clean assembly
```

This will run tests as well (will take less than a minute).
This will run tests as well (will take less than a minute). You can skip test in this way:

```
sbt "set test in assembly := {}" clean assembly
```
5 changes: 3 additions & 2 deletions src/main/resources/logback.xml
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
<configuration>
<statusListener class="ch.qos.logback.core.status.NopStatusListener" />
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<layout class="ch.qos.logback.classic.PatternLayout">
<Pattern>
%d{HH:mm:ss.SSS} - %msg%n
</Pattern>
</layout>
</appender>
<root level="error">
<root level="OFF">
<appender-ref ref="CONSOLE"/>
</root>
<logger name="com.filipponi" level="debug" additivity="false">
<logger name="com.filipponi" level="info" additivity="false">
<appender-ref ref="CONSOLE"/>
</logger>
</configuration>
2 changes: 1 addition & 1 deletion src/main/scala/com/filipponi/seeker/MsgSeeker.scala
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ object MsgSeeker extends App {
val partitionInfos = consumer.partitionsFor(config.topic).asScala

//this poll does the trick to assign all the partition to this consumer, otherwise i can't seek.
consumer.poll(Duration.ofSeconds(1))
consumer.poll(Duration.ofSeconds(5))

partitionInfos.foreach { partitionInfo =>
consumer.seek(new TopicPartition(partitionInfo.topic(), partitionInfo.partition()), config.offset)
Expand Down

0 comments on commit af7b100

Please sign in to comment.