Browse Source

'fig logs' shows output for stopped containers

Aanand Prasad 12 năm trước cách đây
mục cha
commit
b92e998929
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      fig/cli/main.py

+ 1 - 1
fig/cli/main.py

@@ -113,7 +113,7 @@ class TopLevelCommand(Command):
 
         Usage: logs [SERVICE...]
         """
-        containers = self.project.containers(service_names=options['SERVICE'], stopped=False)
+        containers = self.project.containers(service_names=options['SERVICE'], stopped=True)
         print("Attaching to", list_containers(containers))
         LogPrinter(containers, attach_params={'logs': True}).run()