Skip to content

Commit

Permalink
DEbug stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Holladiewal committed Sep 9, 2017
1 parent 158b21a commit c9a488b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/LogHandler.kt
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,9 @@ open class listener : TailerListenerAdapter(){
try{

if (message == "DEBUG"){

FileUtils.writeLines(File("debug.log"), rescues.asStringArray())
val file = File("debug.log")
if (!file.exists()) file.createNewFile()
FileUtils.writeLines(file, rescues.asStringArray())
}

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

0 comments on commit c9a488b

Please sign in to comment.