mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-08 07:51:28 +12:00
Curl: fix --verbose-curl option
This commit is contained in:
parent
3fde455932
commit
cbec04cd0f
3 changed files with 17 additions and 4 deletions
|
@ -545,7 +545,20 @@ int main(int argc, char** argv)
|
|||
return 0;
|
||||
|
||||
// Set curl to verbose if needed
|
||||
rpcs3::curl::s_curl_verbose = parser.isSet(arg_verbose_curl);
|
||||
rpcs3::curl::g_curl_verbose = parser.isSet(arg_verbose_curl);
|
||||
|
||||
if (rpcs3::curl::g_curl_verbose)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
if (AttachConsole(ATTACH_PARENT_PROCESS) || AllocConsole())
|
||||
{
|
||||
[[maybe_unused]] const auto con_out = freopen("CONOUT$", "w", stdout);
|
||||
[[maybe_unused]] const auto con_err = freopen("CONOUT$", "w", stderr);
|
||||
}
|
||||
#endif
|
||||
fprintf(stdout, "Enabled Curl verbose logging.\n");
|
||||
sys_log.always()("Enabled Curl verbose logging. Please look at your console output.");
|
||||
}
|
||||
|
||||
// Handle update of commit database
|
||||
if (parser.isSet(arg_commit_db))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue