Skip to content

Commit c9a488b

Browse files
committed
DEbug stuff
1 parent 158b21a commit c9a488b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/LogHandler.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,9 @@ open class listener : TailerListenerAdapter(){
8888
try{
8989

9090
if (message == "DEBUG"){
91-
92-
FileUtils.writeLines(File("debug.log"), rescues.asStringArray())
91+
val file = File("debug.log")
92+
if (!file.exists()) file.createNewFile()
93+
FileUtils.writeLines(file, rescues.asStringArray())
9394
}
9495

9596
if (message.toCharArray()[0] == '!'){

0 commit comments

Comments
 (0)