I've done a quick optimization with maestro logs implementation, I use directly the tail argument from the docker-py API.
I've modify maestro logs -F to continue to print logs even if the container is restarted. I do by tracking events in docker and if a container with the same name is started, Maestro will print logs of the new container (even if the container ID changes).
This pull request modifies two things:
maestro logs
implementation, I use directly the tail argument from the docker-py API.maestro logs -F
to continue to print logs even if the container is restarted. I do by tracking events in docker and if a container with the same name is started, Maestro will print logs of the new container (even if the container ID changes).