Logging improvements, log socket messages