Hook up debug log switch to raster verbose mode
This commit is contained in:
parent
23fe3741f9
commit
595a253693
2 changed files with 9 additions and 5 deletions
|
@ -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);
|
||||
|
|
|
@ -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"));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue