HttpSender and HttpSenderThread: fixed them for effective logging.