Skip to main content
Read an installation’s log, oldest first, from an entry on. The log is the progress view and the history: every install, upgrade and uninstall appends to it, and nothing rewrites it (The log).

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:
  1. Hold the id of the last entry read before the request, or none for a new installation.
  2. Once a second, read list_log with that id as after, print the entries, and keep next.
  3. Read Get Installation each time too. While its status is installing or uninstalling, go back to step 2.
  4. Once it is not, read list_log once more, for the entries written as the status changed. The operation ended ready, failed or uninstalled.

Errors

Example

The start of the upgrade of reports to 0.3.0, read after the last entry of its first install:
The next read passes "after": "1796202907121-0003" and returns what the worker has written since, up to ready at 0.3.0.