[WIP] Even more verbose logging for creating projects

This commit is contained in:
Pavel Marek 2024-09-24 11:54:25 +02:00
parent 177487016a
commit a7067c8472
2 changed files with 7 additions and 8 deletions

View File

@ -46,7 +46,7 @@ case class Command(
timeoutInSeconds: Option[Long] = Some(300)
): Try[(Int, String)] =
wrapError {
logger.debug("Executing {}", this)
logger.error("Executing {}", this)
val processBuilder = builder()
val process = processBuilder.start()
val wrappedProcess = new WrappedProcess(command, process)

View File

@ -10,14 +10,10 @@ import org.slf4j.event.Level
import java.net.URI
import org.enso.runtimeversionmanager.components.Manifest.JVMOptionsContext
import org.enso.runtimeversionmanager.components.{
Engine,
GraalRuntime,
RuntimeVersionManager
}
import org.enso.runtimeversionmanager.components.{Engine, GraalRuntime, RuntimeVersionManager}
import org.enso.runtimeversionmanager.config.GlobalRunnerConfigurationManager
import java.nio.file.Path
import java.nio.file.{Files, Path}
import scala.concurrent.duration.DurationInt
import scala.concurrent.{Await, Future, TimeoutException}
import scala.util.Try
@ -231,7 +227,10 @@ class Runner(
val extraEnvironmentOverrides =
javaHome.map("JAVA_HOME" -> _).toSeq ++ distributionSettings.toSeq
Logger[Runner].error("Starting command: {}", command)
val logger = Logger[Runner]
logger.error("Starting command: {}", command)
val allComponents = Files.list(componentPath).map(_.getFileName).toList
logger.error("Contents of component dir: [{}]", allComponents)
action(
Command(
command,