diff --git a/src/hms123311.c b/src/hms123311.c
index f0eaca270814bfba99280dc2a513829018a169b6..d3e7adc2aaed4d4a0338fc7b6c3561eee7ec9cb7 100644
--- a/src/hms123311.c
+++ b/src/hms123311.c
@@ -103,7 +103,10 @@ HMS_connect (const char *format, ...)
 	buffer->needle = 0;
 
 	if (cv_masterserver_debug.value)
+	{
 		curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
+		curl_easy_setopt(curl, CURLOPT_STDERR, logstream);
+	}
 	curl_easy_setopt(curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
 	curl_easy_setopt(curl, CURLOPT_URL, url);
 	curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);