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

Change-Id: I99ae0b3e887a0fd97a8826e52573d4d33dc1349e