mcollina / docker-loghose

Collect all the logs from all docker containers
MIT License
63 stars 15 forks source link

Catch error on docker-modem disconnect #16

Closed megastef closed 8 years ago

megastef commented 8 years ago

Accoring to my tests catching and ignoring the error when Docker daemon restarts works - so docker loghose continues to receive logs after the restart Docker daemon (> Docker v1.11).

Initially I've tried to emit the error via the "result" object, to make DLH users aware about the disconnect, e.g. to reconnect. But this did lead to a stack overflow. So this solution is "silent", but works for the scenario in issue https://github.com/mcollina/docker-loghose/issues/15

Demo: http://recordit.co/GuRtxVw48t

mcollina commented 8 years ago

This is great, thanks!