diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c18322efeacf5713a971484749c69eadef9c6a92..47ae277b262f186502b2e99515ed66bf8592d598 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -38,7 +38,7 @@ compile: - go get github.com/hpcloud/tail - go get github.com/alecthomas/kingpin # Better put this in a Makefile - - go build -race -ldflags "-extldflags '-static'" -o mybinary + - go build -race -ldflags "-extldflags '-static'" -o eth-log-alerting artifacts: paths: - - mybinary + - eth-log-alerting diff --git a/eth-log-alerting.go b/eth-log-alerting.go index 9fc03db8d25f390c4d18e3ae297207025791b40d..ee3ef56fb467fa4c6c6dcad3372c78aec085298b 100644 --- a/eth-log-alerting.go +++ b/eth-log-alerting.go @@ -38,6 +38,8 @@ var ( logger *log.Logger debugDest string debug bool + + bad_var_name string ) func init() { @@ -56,7 +58,7 @@ func init() { validatePath(&logPath) - if !govalidator.IsURL(webhookURL) || len(channel) < 2 { + if ! govalidator.IsURL(webhookURL) || len(channel) < 2 { usage() }