From 1a3c88ef204e4ea30e15a3abf7e14720e36356e4 Mon Sep 17 00:00:00 2001 From: Mark Harrah Date: Sat, 23 Nov 2013 19:18:54 -0500 Subject: [PATCH] Log at the debug level the commands being executed by the command engine. --- main/command/src/main/scala/sbt/State.scala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main/command/src/main/scala/sbt/State.scala b/main/command/src/main/scala/sbt/State.scala index a449fc1f9..16ebefdf0 100644 --- a/main/command/src/main/scala/sbt/State.scala +++ b/main/command/src/main/scala/sbt/State.scala @@ -173,8 +173,10 @@ object State implicit def stateOps(s: State): StateOps = new StateOps { def process(f: (String, State) => State): State = s.remainingCommands match { - case Seq(x, xs @ _*) => f(x, s.copy(remainingCommands = xs, history = x :: s.history)) case Seq() => exit(true) + case Seq(x, xs @ _*) => + log.debug(s"> $x") + f(x, s.copy(remainingCommands = xs, history = x :: s.history)) } s.copy(remainingCommands = s.remainingCommands.drop(1)) def ::: (newCommands: Seq[String]): State = s.copy(remainingCommands = newCommands ++ s.remainingCommands)