Added debug ouput for socket connection
Added debug ouput for socket connection