Skip to content

Commit

Permalink
Downgrade some log messages that were left over from debugging.
Browse files Browse the repository at this point in the history
Issue #143.
  • Loading branch information
jaqx0r committed Mar 3, 2018
1 parent 47d93c4 commit 7733662
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tailer/tail.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ func (t *Tailer) handleTruncate(f afero.File) error {
return err
}

glog.Infof("File size is %d", fi.Size())
glog.V(2).Infof("File size is %d", fi.Size())
if currentOffset == 0 || fi.Size() >= currentOffset {
return fmt.Errorf("no truncate appears to have occurred")
}
Expand All @@ -227,7 +227,7 @@ func (t *Tailer) read(f afero.File, partial *bytes.Buffer) error {
glog.V(2).Info("Suspected truncation.")
// If there was nothing to be read, perhaps the file just got truncated.
herr := t.handleTruncate(f)
glog.Infof("handletrunc with error '%v'", herr)
glog.V(2).Infof("handletrunc with error '%v'", herr)
if herr == nil {
// Try again: offset was greater than filesize and now we've seeked to start.
continue
Expand Down
4 changes: 2 additions & 2 deletions vm/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@ func (l *Loader) LoadAllPrograms() error {
func (l *Loader) LoadProgram(programPath string) error {
name := filepath.Base(programPath)
if strings.HasPrefix(name, ".") {
glog.Infof("Skipping %s because it is a hidden file.", programPath)
glog.V(2).Infof("Skipping %s because it is a hidden file.", programPath)
return nil
}
if filepath.Ext(name) != fileExt {
glog.Infof("Skipping %s due to file extension.", programPath)
glog.V(2).Infof("Skipping %s due to file extension.", programPath)
return nil
}
f, err := l.fs.Open(programPath)
Expand Down

0 comments on commit 7733662

Please sign in to comment.