log.Errorf when pod streaming fails (#1463)
* log.Errorf when pod streaming fails * Error method added for loggers Co-authored-by: Asim Aslam <asim@aslam.me>
This commit is contained in:
@@ -260,12 +260,17 @@ type logStream struct {
|
||||
service string
|
||||
stream chan LogRecord
|
||||
stop chan bool
|
||||
err error
|
||||
}
|
||||
|
||||
func (l *logStream) Chan() chan LogRecord {
|
||||
return l.stream
|
||||
}
|
||||
|
||||
func (l *logStream) Error() error {
|
||||
return l.err
|
||||
}
|
||||
|
||||
func (l *logStream) Stop() error {
|
||||
// @todo seems like this is causing a hangup
|
||||
//err := l.tail.Stop()
|
||||
|
||||
Reference in New Issue
Block a user