mirror of https://github.com/sbt/sbt.git
Update main/src/main/scala/sbt/internal/DefaultBackgroundJobService.scala
Co-authored-by: adpi2 <adrien.piquerez@gmail.com>
This commit is contained in:
parent
1f71332edc
commit
683b09afa8
|
|
@ -309,11 +309,11 @@ private[sbt] abstract class AbstractBackgroundJobService extends BackgroundJobSe
|
|||
private[sbt] def pauseChannelDuringJob(state: State, handle: JobHandle): Unit =
|
||||
currentChannel(state) match
|
||||
case Some(channel) =>
|
||||
val level = channel.logLevel
|
||||
channel.setLevel(Level.Error)
|
||||
channel.pause()
|
||||
handle match
|
||||
case t: ThreadJobHandle =>
|
||||
val level = channel.logLevel
|
||||
channel.setLevel(Level.Error)
|
||||
channel.pause()
|
||||
t.job.onStop: () =>
|
||||
channel.setLevel(level)
|
||||
channel.resume()
|
||||
|
|
|
|||
Loading…
Reference in New Issue