desktop/source/minidump/minidump.cxx |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

New commits:
commit c9b69e412b9646f7d49f500d47a078c2ea155c8c
Author:     offtkp <parisop...@gmail.com>
AuthorDate: Sun Apr 3 22:58:33 2022 +0300
Commit:     Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org>
CommitDate: Wed Apr 6 08:29:09 2022 +0200

    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 <ilmari.lauhakan...@libreoffice.org>

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<std::string, 
std::string>& 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)
     {

Reply via email to