File sync now records a machine-readable reason when it stops and exposes its current state.
What's wrong with this entry?
The component that uploads a directory's files for a session now records a reason code next to each human-readable stop message, and exposes a state accessor reporting off, stopped, seeding or armed.
- Reason codes include
not_opted_in,internal_errorandshut_down. - Existing messages, such as the one for a directory whose files could not be listed, are unchanged.
File sync stopped for this session: this directory's files could not be listed
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
Related
Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.