Merge pull request #3 from tomstuart/fix-fig-build-logging

Fix `fig build` logging
This commit is contained in:
Ben Firshman 2014-01-02 15:37:10 -08:00
commit 9ede185d4b
1 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
import logging
from .service import Service from .service import Service
log = logging.getLogger(__name__)
def sort_service_dicts(services): def sort_service_dicts(services):
# Sort in dependency order # Sort in dependency order
def cmp(x, y): def cmp(x, y):
@ -98,7 +101,7 @@ class Project(object):
if service.can_be_built(): if service.can_be_built():
service.build(**options) service.build(**options)
else: else:
log.info('%s uses an image, skipping') log.info('%s uses an image, skipping' % service.name)
def remove_stopped(self, service_names=None, **options): def remove_stopped(self, service_names=None, **options):
for service in self.get_services(service_names): for service in self.get_services(service_names):