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
* Add endpoint to get device state [Pablo]

View File

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