Merge pull request #102 from resin-io/101-reduce-noise-in-logs

Reduce noise in logs
This commit is contained in:
Kostas Lekkas 2016-03-07 16:29:12 +02:00
commit cefadc0d53
2 changed files with 4 additions and 4 deletions

View File

@ -1,3 +1,5 @@
* Reduce noise in logs [Kostas]
# v1.6.0 # v1.6.0
* Add endpoint to get device state [Pablo] * Add endpoint to get device state [Pablo]

View File

@ -191,8 +191,7 @@ do ->
docker.getContainer(containerInfo.Id).removeAsync() docker.getContainer(containerInfo.Id).removeAsync()
.then -> .then ->
console.log('Deleted container:', containerInfo.Id, containerInfo.Image) console.log('Deleted container:', containerInfo.Id, containerInfo.Image)
.catch (err) -> .catch(_.noop)
console.log('Error deleting container:', containerInfo.Id, containerInfo.Image, err)
.then -> .then ->
# And then clean up the images, as long as we aren't currently trying to fetch any. # And then clean up the images, as long as we aren't currently trying to fetch any.
return if imagesBeingFetched > 0 return if imagesBeingFetched > 0
@ -204,8 +203,7 @@ do ->
docker.getImage(tag).removeAsync() docker.getImage(tag).removeAsync()
.then -> .then ->
console.log('Deleted image:', tag, image.Id, image.RepoTags) console.log('Deleted image:', tag, image.Id, image.RepoTags)
.catch (err) -> .catch(_.noop)
console.log('Error deleting image:', tag, image.Id, image.RepoTags, err)
containerHasExited = (id) -> containerHasExited = (id) ->
docker.getContainer(id).inspectAsync() docker.getContainer(id).inspectAsync()