Files
swupd-client/include
Auke Kok 9bbf879f5a Telemetry: Add telemetry function, and 3 uses.
The telemetry function only works insire swupd_init() / swupd_deinit()
functions, as it accesses state_dir from globals. This restricts the
use of it a bit, so we move the timekeeping function into
main_update().

Aside from update, I've added a telemetry point in verify as well.

With this, we have several easy telemetry points in swupd that
should give us an indication how swupd is performing without divulging
lots of detailed information.

The swupd.h file contains easy defines for level, and the telemetry()
function itself is as failsafe as it can be - any error results in
a continuing swupd program, although these errors would occur in
a system that is already hopeless (disk full) anyway.
2016-11-29 18:15:06 -08:00
..
2016-06-27 10:38:27 -07:00