tool: Moved --trace and --verbose to the global config

This commit is contained in:
Steve Holme 2014-02-27 20:51:49 +00:00
parent fd97c17bb7
commit 4efa1d29e2
6 changed files with 35 additions and 29 deletions

View file

@ -1147,7 +1147,7 @@ static CURLcode operate_do(struct GlobalConfig *global,
/* disable it */
my_setopt(curl, CURLOPT_FTP_USE_EPRT, 0L);
if(config->tracetype != TRACE_NONE) {
if(global->tracetype != TRACE_NONE) {
my_setopt(curl, CURLOPT_DEBUGFUNCTION, tool_debug_cb);
my_setopt(curl, CURLOPT_DEBUGDATA, config);
my_setopt(curl, CURLOPT_VERBOSE, 1L);