summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorofftkp <parisoplop@gmail.com>2022-04-03 22:58:33 +0300
committerIlmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>2022-04-06 08:29:09 +0200
commitc9b69e412b9646f7d49f500d47a078c2ea155c8c (patch)
tree1b8bbadfadb0f9143a46293128ad87469ada3851 /desktop
parent91cbd74b6d469079e97064c9c88e0860941841fa (diff)
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.lauhakangas@libreoffice.org>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/minidump/minidump.cxx12
1 files changed, 6 insertions, 6 deletions
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)
{