mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-19 19:28:59 +00:00
Merge pull request #102 from resin-io/101-reduce-noise-in-logs
Reduce noise in logs
This commit is contained in:
commit
cefadc0d53
@ -1,3 +1,5 @@
|
||||
* Reduce noise in logs [Kostas]
|
||||
|
||||
# v1.6.0
|
||||
|
||||
* Add endpoint to get device state [Pablo]
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user