From 21df295030ee5b385c67542ed7b5bea8b07900ee Mon Sep 17 00:00:00 2001 From: Andreas Neue Date: Mon, 2 Jul 2018 13:46:39 +0200 Subject: [PATCH] bugfixes --- logforward.sh | 2 +- main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/logforward.sh b/logforward.sh index 5cda1eb..b4148ca 100644 --- a/logforward.sh +++ b/logforward.sh @@ -2,5 +2,5 @@ trap 'echo oh, I am slain; exit' INT while true; do #varnishncsa -F '%{X-Forwarded-For}i %h %l %u %t "%r" %s %b "%{Referer}i" "%{User-agent}i"' | logforward -h backup01.scn.chefkoch.net:22 -p /srv/logfiles_seo/webxx- -u root -k /etc/varnish/id_rsa_lf -b 100000000 - varnishncsa -F '%{X-Forwarded-For}i %h %l %u %t "%r" %s %b "%{Referer}i" "%{User-agent}i"' | logforward -h $1 -p $2 -u root -k $3 -b 100000000 + varnishncsa -F '%{X-Forwarded-For}i %h %l %u %t "%r" %s %b "%{Referer}i" "%{User-agent}i"' | logforward -h $1 -p $2 -u $3 -k $4 -b 100000000 done diff --git a/main.go b/main.go index 8c48ec6..d89c55a 100644 --- a/main.go +++ b/main.go @@ -42,7 +42,7 @@ func main() { fmt.Printf("%s\n", err.Error()) l := []byte(log) gzipAndSend(l) - return + break } else { log += line fmt.Printf("%d\r", len(log))