Skip to content

Commit

Permalink
Disable warnings logged by nuprocess library (#798)
Browse files Browse the repository at this point in the history
  • Loading branch information
mzarnowski authored and jvican committed Jan 16, 2019
1 parent 8197a74 commit 207a149
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions launcher/src/main/scala/bloop/launcher/core/Shell.scala
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ import java.nio.ByteBuffer
import java.nio.charset.StandardCharsets
import java.nio.file.{Files, Path}
import java.util.concurrent.TimeUnit
import java.util.logging.{Level, Logger}

import bloop.launcher.bsp.BspConnection
import bloop.launcher.util.Environment
import com.zaxxer.nuprocess.internal.BasePosixProcess
import com.zaxxer.nuprocess.{NuAbstractProcessHandler, NuProcess, NuProcessBuilder}

import scala.collection.mutable.ListBuffer
Expand Down Expand Up @@ -162,6 +164,8 @@ final class Shell(runWithInterpreter: Boolean, detectPython: Boolean) {
}

object Shell {
Logger.getLogger(classOf[BasePosixProcess].getCanonicalName).setLevel(Level.SEVERE)

def default: Shell = new Shell(false, true)

def portNumberWithin(from: Int, to: Int): Int = {
Expand Down

0 comments on commit 207a149

Please sign in to comment.