Commit c1c7154f authored by nico baruna's avatar nico baruna

only restart when new error detected

parent 943ce05c
......@@ -88,8 +88,9 @@ func readFile(fname string) {
fmt.Println(line.Text)
if strings.Contains(line.Text, KEYWORD) {
fmt.Println("ERROR FOUND")
Native()
if flag == 1 {
Native()
sendMail(line.Text)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment