Merge "Surface the log write errors to StatsLog.write" into pi-dev am: 03cd687912
am: e079e5784f

Change-Id: Ia329c68a8b737a62ce78ebcbd2082bd022d9d5fe