mirror of https://github.com/sbt/sbt.git
Log server commands
Prior to this change, if a network command came in, it would run in the background with no real feedback in the server ui. Prior to this change, running compile from the thin client would look like: sbt:scala-compile> [success] Total time: 1 s, completed Dec 12, 2019, 7:24:43 PM sbt:scala-compile> Now it looks like: sbt:scala-compile> [info] Running remote command: compile [success] Total time: 1 s, completed Dec 12, 2019, 7:26:17 PM sbt:scala-compile>
This commit is contained in:
parent
5afc0f0fdf
commit
08091d64c1
|
|
@ -900,6 +900,9 @@ object BuiltinCommands {
|
|||
.getOpt(Keys.minForcegcInterval)
|
||||
.getOrElse(GCUtil.defaultMinForcegcInterval)
|
||||
val exec: Exec = exchange.blockUntilNextExec(minGCInterval, s1.globalLogging.full)
|
||||
if (exec.source.fold(true)(_.channelName != "console0")) {
|
||||
s1.log.info(s"Running remote command: ${exec.commandLine}")
|
||||
}
|
||||
val newState = s1
|
||||
.copy(
|
||||
onFailure = Some(Exec(Shell, None)),
|
||||
|
|
|
|||
Loading…
Reference in New Issue