Merge "Remove the obsolete code for logd and add statsd socket log loss detection."