diff --git a/src/curlrequester.cpp b/src/curlrequester.cpp index 7dd62da..63128ee 100644 --- a/src/curlrequester.cpp +++ b/src/curlrequester.cpp @@ -14,10 +14,9 @@ CurlRequester::CurlRequester(QUrl addr, Role role) curl_easy_setopt(_curl, CURLOPT_URL, addr.toString().toStdString().c_str()); - QLoggingCategory* defaultLoggingCategory = QLoggingCategory::defaultCategory(); + bool verbose = QLoggingCategory::defaultCategory()->isDebugEnabled(); - - curl_easy_setopt(_curl, CURLOPT_VERBOSE, defaultLoggingCategory->isDebugEnabled()); + curl_easy_setopt(_curl, CURLOPT_VERBOSE, verbose); if(Settings::instance()->ignoreSslErrors()) { curl_easy_setopt(_curl, CURLOPT_SSL_VERIFYPEER, 0L); diff --git a/src/printerworker.cpp b/src/printerworker.cpp index bc7372c..feafda3 100644 --- a/src/printerworker.cpp +++ b/src/printerworker.cpp @@ -131,8 +131,10 @@ try { float Width = size.width(); float Height = size.height(); + bool verbose = QLoggingCategory::defaultCategory()->isDebugEnabled(); + int res = pdf_to_printable(filename.toStdString(), WriteFun, Colors, Quality, PaperSize.toStdString(), Width, Height, HwResX, HwResY, - format, TwoSided, Tumble, BackHFlip, BackVFlip, PageRangeLow, PageRangeHigh, ProgressFun); + format, TwoSided, Tumble, BackHFlip, BackVFlip, PageRangeLow, PageRangeHigh, ProgressFun, verbose); if(res != 0) { @@ -288,7 +290,10 @@ try { buf.read((char*)(inBts.raw()), inBts.size()); outBts << (urf ? make_urf_file_hdr(1) : make_pwg_file_hdr()); - bmp_to_pwg(inBts, outBts, urf, 1, Colors, Quality, HwResX, HwResY, Width, Height, false, false, PaperSize.toStdString(), false, false); + + bool verbose = QLoggingCategory::defaultCategory()->isDebugEnabled(); + + bmp_to_pwg(inBts, outBts, urf, 1, Colors, Quality, HwResX, HwResY, Width, Height, false, false, PaperSize.toStdString(), false, false, verbose); emit busyMessage(tr("Printing")); }