Skip to content

Commit

Permalink
Cleaned up log texts.
Browse files Browse the repository at this point in the history
  • Loading branch information
anastasiamac committed Apr 6, 2016
1 parent 0a5d04c commit ba098eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions environs/bootstrap/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -358,15 +358,15 @@ func bootstrapImageMetadata(
for _, source := range sources {
sourceMetadata, _, err := imagemetadata.Fetch([]simplestreams.DataSource{source}, imageConstraint)
if err != nil {
logger.Debugf("ignoring image metadata in %s because %v", source.Description(), err)
logger.Debugf("ignoring image metadata in %s: %v", source.Description(), err)
// Just keep looking...
continue
}
logger.Debugf("found %d image metadata in %s", len(sourceMetadata), source.Description())
publicImageMetadata = append(publicImageMetadata, sourceMetadata...)
}

logger.Debugf("found %d image metadata from all obtined image data sources", len(publicImageMetadata))
logger.Debugf("found %d image metadata from all image data sources", len(publicImageMetadata))
if len(publicImageMetadata) == 0 {
return nil, errors.New("no image metadata found")
}
Expand Down
3 changes: 1 addition & 2 deletions environs/instances/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ func FindInstanceSpec(possibleImages []Image, ic *InstanceConstraint, allInstanc
ic.Series, ic.Region, ic.Arches)
}

logger.Debugf("matching constraints %v", ic)
logger.Debugf("against possible image metadata %+v", possibleImages)
logger.Debugf("matching constraints %v against possible image metadata %+v", ic, possibleImages)
matchingTypes, err := MatchingInstanceTypes(allInstanceTypes, ic.Region, ic.Constraints)
if err != nil {
return nil, err
Expand Down

0 comments on commit ba098eb

Please sign in to comment.