Fixing configuration problem with the log level.
Adding error logging of cURL calls.