improve socket information logging