Merge "Retry logs write when it fails. Report skipped event in statsd." into pi-dev