Skip to content

Commit

Permalink
TELEGRAF-1: Fixing review comment
Browse files Browse the repository at this point in the history
Removing extra logs addded for debuging
  • Loading branch information
chayan-04 committed Nov 15, 2023
1 parent 086ef4a commit bed10ba
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions plugins/inputs/tail/tail.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,6 @@ func (t *Tail) tailNewFiles(fromBeginning bool) error {
}
}

t.Log.Errorf("Chayan before adding Tail %q", file)

tailer, err := tail.TailFile(file,
tail.Config{
ReOpen: true,
Expand All @@ -266,15 +264,13 @@ func (t *Tail) tailNewFiles(fromBeginning bool) error {
return
}
t.tailers[tailer.Filename] = tailer
t.Log.Errorf("Chayan Tail added for %q", file)

parser, err := t.parserFunc()
if err != nil {
t.Log.Errorf("Creating parser: %s", err.Error())
return
}

t.Log.Debugf("Tail added for %q", file)
t.receiver(parser, tailer)
t.Log.Debugf("Tail removed for %q", tailer.Filename)

Expand Down

0 comments on commit bed10ba

Please sign in to comment.