Skip to content

Commit

Permalink
refactor: Further backports from bloop-core
Browse files Browse the repository at this point in the history
  • Loading branch information
tgodzik committed Jan 3, 2024
1 parent e09743f commit 7296ebb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
6 changes: 4 additions & 2 deletions frontend/src/main/resources/logback.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<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>
Expand All @@ -8,8 +10,8 @@
</layout>
</appender>

<root level="info">
<root level="error">
<appender-ref ref="CONSOLE"/>
</root>

</configuration>
</configuration>
12 changes: 1 addition & 11 deletions frontend/src/main/scala/bloop/Server.scala
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,7 @@ object Server {

def nailMain(ngContext: NGContext): Unit = {
val server = ngContext.getNGServer
import java.util.concurrent.ForkJoinPool

ForkJoinPool
.commonPool()
.submit(new Runnable {
override def run(): Unit = {
server.shutdown(false)
}
})

()
server.shutdown(false)
}

private def run(server: NGServer): Unit = {
Expand Down

0 comments on commit 7296ebb

Please sign in to comment.