mirror of https://github.com/sbt/sbt.git
Merge pull request #4164 from alodavi/alodavi/improving_loading_settings_messaging
Improving loading settings messaging
This commit is contained in:
commit
7f808bd3a1
|
|
@ -1039,7 +1039,7 @@ private[sbt] object Load {
|
|||
// Grab all the settings we already loaded from sbt files
|
||||
def settings(files: Seq[File]): Seq[Setting[_]] = {
|
||||
if (files.nonEmpty)
|
||||
log.info(s"${files.map(_.getName).mkString("Loading settings from ", ",", " ...")}")
|
||||
log.info(s"${files.map(_.getName).mkString(s"Loading settings for project ${p.id} from ", ",", " ...")}")
|
||||
for {
|
||||
file <- files
|
||||
config <- (memoSettings get file).toSeq
|
||||
|
|
|
|||
|
|
@ -0,0 +1,22 @@
|
|||
### Improvements
|
||||
|
||||
Now when loading a project that has multiple build.sbt files the logger shows the path as well.
|
||||
Before it was:
|
||||
|
||||
```bash
|
||||
[info] Loading settings from build.sbt ...
|
||||
[info] Loading settings from build.sbt ...
|
||||
[info] Loading settings from build.sbt ...
|
||||
[info] Loading settings from build.sbt ...
|
||||
```
|
||||
|
||||
Now it's:
|
||||
|
||||
```bash
|
||||
[info] Loading settings from /home/user/Work/personal/someProject/build.sbt ...
|
||||
[info] Loading settings from /home/user/Work/personal/someProject/subProject1/build.sbt ...
|
||||
[info] Loading settings from /home/user/Work/personal/someProject/subProject2/build.sbt ...
|
||||
[info] Loading settings from /home/user/Work/personal/someProject/subProject3/build.sbt ...
|
||||
```
|
||||
|
||||
This should solve the issue: https://github.com/sbt/sbt/issues/3607
|
||||
Loading…
Reference in New Issue