Skip to content

Commit

Permalink
Update main/src/main/scala/sbt/internal/DefaultBackgroundJobService.s…
Browse files Browse the repository at this point in the history
…cala

Co-authored-by: adpi2 <[email protected]>
  • Loading branch information
eed3si9n and adpi2 authored Oct 1, 2024
1 parent 1f71332 commit 683b09a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 683b09a

Please sign in to comment.