Browse Source

Tell fig up to print logs before attaching

Dustin Lacewell 11 năm trước cách đây
mục cha
commit
511a9beede
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

@@ -292,7 +292,7 @@ class TopLevelCommand(Command):
         if not detached:
         if not detached:
             to_attach = [c for (s, c) in new]
             to_attach = [c for (s, c) in new]
             print("Attaching to", list_containers(to_attach))
             print("Attaching to", list_containers(to_attach))
-            log_printer = LogPrinter(to_attach)
+            log_printer = LogPrinter(to_attach, attach_params={"logs": True})
 
 
         for (service, container) in new:
         for (service, container) in new:
             service.start_container(container)
             service.start_container(container)