You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2019/06/04 18:39:30 UTC
[GitHub] [mynewt-core] ccollins476ad opened a new pull request #1864:
mgmt/imgmgr: Log image management events
ccollins476ad opened a new pull request #1864: mgmt/imgmgr: Log image management events
URL: https://github.com/apache/mynewt-core/pull/1864
This PR adds logging for four image management events.
It will be a nuisance to change the format of these log entries in the future, so we should try to get them right the first time. Please don't hold back in critiquing the log entry formats!
All events are CBOR-encoded:
```
up_start:
When: upon receiving an upload request with an offset of 0.
Structure:
{
"ev": "up_start",
"status": <mgmt-error-code (int)>
}
up_done:
When: upon receiving an upload request containing the final chunk of
an image OR a failed upload request with a non-zero offset.
Structure:
{
"ev": "up_done",
"status": <mgmt-error-code (int)>
}
pending:
When: upon receiving a non-permanent `set-pending` request.
Structure:
{
"ev": "pending",
"status": <mgmt-error-code (int)>,
"hash": <image-hash (byte-string)>
}
confirmed:
When: upon receiving a `confirm` request OR a permanent
`set-pending` request.
Structure:
{
"ev": "confirmed",
"status": <mgmt-error-code (int)>,
"hash": <image-hash (byte-string)> (only present for `set-pending`)
}
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services