Explorar o código

Add build log message

Ben Firshman %!s(int64=12) %!d(string=hai) anos
pai
achega
ee0ac206e0
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      plum/service.py

+ 3 - 0
plum/service.py

@@ -1,5 +1,7 @@
+import logging
 import re
 
+log = logging.getLogger(__name__)
 
 class Service(object):
     def __init__(self, name, client=None, links=[], **options):
@@ -72,6 +74,7 @@ class Service(object):
         container_options['name'] = make_name(self.name, number)
 
         if 'build' in self.options:
+            log.info('Building %s from %s...' % (self.name, self.options['build']))
             container_options['image'] = self.client.build(self.options['build'])[0]
 
         return container_options