Logging
This commit is contained in:
parent
087123febf
commit
e2caf8f84d
@ -12,7 +12,7 @@ open class Daemon(open val executable: String, val daemonInterface: IDaemon) {
|
|||||||
var executor: ProcessResult? = null
|
var executor: ProcessResult? = null
|
||||||
open suspend fun run(parameters: List<String>): Int {
|
open suspend fun run(parameters: List<String>): Int {
|
||||||
daemonInterface.onStarted()
|
daemonInterface.onStarted()
|
||||||
logger.info { "Daemon arguments: $executable ${Gson().toJson(parameters.toTypedArray())}" }
|
logger.info { "Daemon arguments: $executable ${parameters.joinToString(" ")}" }
|
||||||
executor = process(executable, *parameters.toTypedArray(),
|
executor = process(executable, *parameters.toTypedArray(),
|
||||||
stdout = Redirect.CAPTURE,
|
stdout = Redirect.CAPTURE,
|
||||||
stderr = Redirect.CAPTURE,
|
stderr = Redirect.CAPTURE,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user