shield some debug log

This commit is contained in:
kongfei 2022-06-02 21:23:02 +08:00
parent 886b7a0cab
commit 1f85f3191b
2 changed files with 2 additions and 3 deletions

View File

@ -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)

View File

@ -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