mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-02-01 00:45:23 +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
|
# v1.6.0
|
||||||
|
|
||||||
* Add endpoint to get device state [Pablo]
|
* Add endpoint to get device state [Pablo]
|
||||||
|
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user