log level and making sure socket endpoint is right