From c303030dfba59400e28ee0597511e9c9387cfbc8 Mon Sep 17 00:00:00 2001 From: Eric Greer Date: Thu, 11 May 2017 17:10:59 -0700 Subject: [PATCH 1/2] remove unwanted log message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When you have a nice spinner, this echo screws up output. In general, packages should try to pass output as returns, leaving it up to the main program to decide what to output. > > ⠋ Watching for fatal in api.log 2017/05/12 00:00:11 Seeked api.log - &{Offset:0 Whence:2} > ⠼ Watching for fatal in api.log --- tail.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tail.go b/tail.go index c99cdaa2..34960ae3 100644 --- a/tail.go +++ b/tail.go @@ -241,7 +241,7 @@ func (tail *Tail) tailFileSync() { // Seek to requested location on first open of the file. if tail.Location != nil { _, err := tail.file.Seek(tail.Location.Offset, tail.Location.Whence) - tail.Logger.Printf("Seeked %s - %+v\n", tail.Filename, tail.Location) + //tail.Logger.Printf("Seeked %s - %+v\n", tail.Filename, tail.Location) if err != nil { tail.Killf("Seek error on %s: %s", tail.Filename, err) return From 708955cec2901ac375655b64b4c7e7d1d93fae12 Mon Sep 17 00:00:00 2001 From: Eric Greer Date: Sat, 9 Sep 2017 18:50:48 -0700 Subject: [PATCH 2/2] Delete logging line instead of commenting out --- tail.go | 1 - 1 file changed, 1 deletion(-) diff --git a/tail.go b/tail.go index 34960ae3..cbc4cb79 100644 --- a/tail.go +++ b/tail.go @@ -241,7 +241,6 @@ func (tail *Tail) tailFileSync() { // Seek to requested location on first open of the file. if tail.Location != nil { _, err := tail.file.Seek(tail.Location.Offset, tail.Location.Whence) - //tail.Logger.Printf("Seeked %s - %+v\n", tail.Filename, tail.Location) if err != nil { tail.Killf("Seek error on %s: %s", tail.Filename, err) return