mirror of
https://github.com/bcicen/ctop.git
synced 2024-08-30 18:23:19 +00:00
add logging for log reader start/stop
This commit is contained in:
parent
3e5176a79c
commit
1c8f4b3a35
@ -58,6 +58,7 @@ func (l *DockerLogs) Stream() chan models.Log {
|
||||
if err != nil {
|
||||
log.Errorf("error reading container logs: %s", err)
|
||||
}
|
||||
log.Infof("log reader stopped for container: %s", l.id)
|
||||
}()
|
||||
|
||||
go func() {
|
||||
@ -67,6 +68,7 @@ func (l *DockerLogs) Stream() chan models.Log {
|
||||
}
|
||||
}()
|
||||
|
||||
log.Infof("log reader started for container: %s", l.id)
|
||||
return logCh
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user