Merge "Log the last error code of StatsLog failures"