Better logging and more testing for curl staging.