Only log a debug message when ring.ErrTimeout occurs, not a warning.

This commit is contained in:
Alan Noble 2019-02-25 07:14:30 +00:00
parent c247e63bd0
commit a90b35b319
1 changed files with 1 additions and 1 deletions

View File

@ -515,7 +515,7 @@ loop:
case nil: case nil:
// Do nothing. // Do nothing.
case ring.ErrTimeout: case ring.ErrTimeout:
r.config.Logger.Log(logger.Warning, pkg+"ring buffer read timeout") r.config.Logger.Log(logger.Debug, pkg+"ring buffer read timeout")
continue continue
default: default:
r.config.Logger.Log(logger.Error, pkg+"unexpected error", "error", err.Error()) r.config.Logger.Log(logger.Error, pkg+"unexpected error", "error", err.Error())