enabled logging of curl commands and errors to file
Removed trailing whitespace