shield some debug log
This commit is contained in:
parent
886b7a0cab
commit
1f85f3191b
|
@ -260,7 +260,7 @@ func (s *Scanner) startNewTailer(file *File, m logsconfig.TailingMode) bool {
|
|||
log.Println("W! Could not recover offset for file with path", file.Path, err)
|
||||
}
|
||||
|
||||
log.Printf("Starting a new tailer for: %s (offset: %d, whence: %d) for tailer key %s\n", file.Path, offset, whence, file.GetScanKey())
|
||||
// log.Printf("Starting a new tailer for: %s (offset: %d, whence: %d) for tailer key %s\n", file.Path, offset, whence, file.GetScanKey())
|
||||
err = tailer.Start(offset, whence)
|
||||
if err != nil {
|
||||
log.Println(err)
|
||||
|
|
|
@ -11,7 +11,6 @@ package file
|
|||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
"log"
|
||||
"path/filepath"
|
||||
|
||||
"flashcat.cloud/categraf/logs/decoder"
|
||||
|
@ -28,7 +27,7 @@ func (t *Tailer) setup(offset int64, whence int) error {
|
|||
// adds metadata to enable users to filter logs by filename
|
||||
t.tags = t.buildTailerTags()
|
||||
|
||||
log.Println("I! Opening", t.file.Path, "for tailer key", t.file.GetScanKey())
|
||||
// log.Println("I! Opening", t.file.Path, "for tailer key", t.file.GetScanKey())
|
||||
f, err := openFile(fullpath)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
Loading…
Reference in New Issue