fix: fix running commands not running

This commit is contained in:
oSumAtrIX
2023-08-24 17:51:31 +02:00
parent 52c3be23f2
commit 2c7fcaf4ad
3 changed files with 20 additions and 17 deletions

View File

@@ -18,12 +18,11 @@ fun main(args: Array<String>) {
}
object : Handler() {
override fun publish(record: LogRecord) = formatter.format(record).let {
if (record.level.intValue() > Level.INFO.intValue()) {
System.err.write(it.toByteArray())
} else {
System.out.write(it.toByteArray())
}
override fun publish(record: LogRecord) = formatter.format(record).toByteArray().let {
if (record.level.intValue() > Level.INFO.intValue())
System.err.write(it)
else
System.out.write(it)
}
override fun flush() {