From 24034aef8de18ac868c4234c23d6f0ca8898b1f1 Mon Sep 17 00:00:00 2001
From: Erick Hitter <git-contrib@ethitter.com>
Date: Fri, 14 Jul 2017 19:58:41 -0700
Subject: [PATCH] Don't do anything if line can't be read

---
 eth-log-alerting.go | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/eth-log-alerting.go b/eth-log-alerting.go
index cc206eb..e19f5c6 100644
--- a/eth-log-alerting.go
+++ b/eth-log-alerting.go
@@ -75,6 +75,10 @@ func tailLog() {
 	}
 
 	for line := range t.Lines {
+		if line.Err != nil {
+			continue
+		}
+
 		if len(searchRegex) == 0 {
 			go sendLine(line)
 		} else {
-- 
GitLab