debug log function to isolate a weird socket issue