POST /revisions/:id/data/query (Command: list_log)
Request Body
Response
Each entry:
A log holds at most
blobhub.package.installer.log_entries_per_installation entries
(Limits); past it, the oldest are trimmed.
Following an operation
install and uninstall answer as soon as the work starts, and the log shows the rest:
- Hold the id of the last entry read before the request, or none for a new installation.
- Once a second, read
list_logwith that id asafter, print theentries, and keepnext. - Read Get Installation each time too. While its status is
installingoruninstalling, go back to step 2. - Once it is not, read
list_logonce more, for the entries written as the status changed. The operation endedready,failedoruninstalled.
Errors
Example
The start of the upgrade ofreports to 0.3.0, read after the last entry of its first install:
"after": "1796202907121-0003" and returns what the worker has written since, up to
ready at 0.3.0.
