From c9b69e412b9646f7d49f500d47a078c2ea155c8c Mon Sep 17 00:00:00 2001 From: offtkp Date: Sun, 3 Apr 2022 22:58:33 +0300 Subject: tdf#130924 replace debugging printf calls with SAL_INFO/SAL_WARN Change-Id: I2e7225b846c307e9a182dadfa490d9f7ff15d35e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132488 Tested-by: Jenkins Reviewed-by: Ilmari Lauhakangas --- desktop/source/minidump/minidump.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'desktop/source') diff --git a/desktop/source/minidump/minidump.cxx b/desktop/source/minidump/minidump.cxx index d61922cdaac6..407d1c7cb1f0 100644 --- a/desktop/source/minidump/minidump.cxx +++ b/desktop/source/minidump/minidump.cxx @@ -169,12 +169,12 @@ static bool uploadContent(std::map& parameters, std::s CURLcode cc = curl_easy_perform(curl); curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &response_code); -#ifndef NDEBUG - if (cc != CURLE_OK) - fprintf(stderr, "Failed to send http request to %s, error: %s\n", - url.c_str(), - curl_easy_strerror(cc)); -#endif + SAL_WARN_IF(cc != CURLE_OK, "desktop", + "Failed to send http request to " << + url.c_str() << + ", error: " << + curl_easy_strerror(cc)) << + "\n"); if (formpost != nullptr) { -- cgit