@@ -5,16 +5,17 @@ import java.lang.ProcessBuilder.Redirect
5
5
import akka .actor .ActorSystem
6
6
import io .iohk .ethereum .extvm .{ExtVMInterface , VmServerApp }
7
7
import io .iohk .ethereum .ledger .Ledger .VMImpl
8
- import io .iohk .ethereum .utils .{BlockchainConfig , VmConfig }
8
+ import io .iohk .ethereum .utils .{BlockchainConfig , Logger , VmConfig }
9
9
import io .iohk .ethereum .utils .VmConfig .ExternalConfig
10
10
11
- object VmSetup {
11
+ object VmSetup extends Logger {
12
12
13
13
import VmConfig .VmMode ._
14
14
15
15
def vm (vmConfig : VmConfig , blockchainConfig : BlockchainConfig , testMode : Boolean )(implicit actorSystem : ActorSystem ): VMImpl =
16
16
(vmConfig.mode, vmConfig.externalConfig) match {
17
17
case (Internal , _) =>
18
+ log.info(" Using Mantis internal VM" )
18
19
new VMImpl
19
20
20
21
case (External , Some (extConf)) =>
@@ -28,12 +29,15 @@ object VmSetup {
28
29
private def startExternalVm (externalConfig : ExternalConfig ): Unit = {
29
30
externalConfig.vmType match {
30
31
case " iele" | " kevm" =>
32
+ log.info(s " Starting external ${externalConfig.vmType} VM process using executable path " )
31
33
startStandardVmProcess(externalConfig)
32
34
33
35
case " mantis" =>
36
+ log.info(" Starting external Mantis VM process using executable path" )
34
37
startMantisVmProcess(externalConfig)
35
38
36
39
case " none" =>
40
+ log.info(" Using external VM process not managed by Mantis" )
37
41
// expect the vm to be started by external means
38
42
}
39
43
}
0 commit comments