Added args print to daemon

This commit is contained in:
Brage 2023-07-24 00:46:14 +02:00
parent 5e3a99c9a0
commit f936c6a5fe

View File

@ -11,6 +11,7 @@ open class Daemon(open val executable: String, val daemonInterface: IDaemon) {
var executor: ProcessResult? = null
open suspend fun run(parameters: List<String>): Int {
daemonInterface.onStarted()
logger.info { "Daemon arguments: $executable ${parameters.toTypedArray()}" }
executor = process(executable, *parameters.toTypedArray(),
stdout = Redirect.CAPTURE,
stderr = Redirect.CAPTURE,