From a6af8c50c80504c64026962e7add75cf9ef7bb1b Mon Sep 17 00:00:00 2001 From: Dale Wijnand Date: Thu, 27 Apr 2017 13:25:07 +0100 Subject: [PATCH] Notify users at info level & in 1 line Refs #3091 --- main/src/main/scala/sbt/Main.scala | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/main/src/main/scala/sbt/Main.scala b/main/src/main/scala/sbt/Main.scala index 34c85f25b..ad42f485b 100644 --- a/main/src/main/scala/sbt/Main.scala +++ b/main/src/main/scala/sbt/Main.scala @@ -577,11 +577,8 @@ object BuiltinCommands { (state.remainingCommands.lastOption exists (_ == s"$IfLast $Shell")) private def notifyUsersAboutShell(state: State) = - if (isInteractive && !intendsToInvokeShell(state) && !intendsToInvokeNew(state)) { - state.log warn "Executing in batch mode." - state.log warn " For better performance, hit [ENTER] to switch to interactive mode, or" - state.log warn " consider launching sbt without any commands, or explicitly passing 'shell'" - } + if (isInteractive && !intendsToInvokeShell(state) && !intendsToInvokeNew(state)) + state.log info "Executing in batch mode. For better performance use sbt's shell; hit [ENTER] to do so now" private def NotifyUsersAboutShell = "notify-users-about-shell"