Commit 518e83f5 authored by Laurent Montel's avatar Laurent Montel 😁

not necessary to use qWarning here

parent ecd0f24c
...@@ -62,7 +62,7 @@ void TemplateParserExtractHtmlInfo::start() ...@@ -62,7 +62,7 @@ void TemplateParserExtractHtmlInfo::start()
connect(mTemplateWebEngineView, &TemplateWebEngineView::loadContentDone, this, &TemplateParserExtractHtmlInfo::slotExtractToPlainTextFinished); connect(mTemplateWebEngineView, &TemplateWebEngineView::loadContentDone, this, &TemplateParserExtractHtmlInfo::slotExtractToPlainTextFinished);
mTemplateWebEngineView->setHtmlContent(mHtmlForExtractingTextPlain); mTemplateWebEngineView->setHtmlContent(mHtmlForExtractingTextPlain);
} else { } else {
qCWarning(TEMPLATEPARSER_LOG) << "html string is empty for extracting to plainText"; qCDebug(TEMPLATEPARSER_LOG) << "html string is empty for extracting to plainText";
slotExtractToPlainTextFinished(false); slotExtractToPlainTextFinished(false);
} }
} }
...@@ -70,7 +70,7 @@ void TemplateParserExtractHtmlInfo::start() ...@@ -70,7 +70,7 @@ void TemplateParserExtractHtmlInfo::start()
void TemplateParserExtractHtmlInfo::slotExtractToPlainTextFinished(bool success) void TemplateParserExtractHtmlInfo::slotExtractToPlainTextFinished(bool success)
{ {
if (!success) { if (!success) {
qCWarning(TEMPLATEPARSER_LOG) << "Impossible to extract plaintext"; qCDebug(TEMPLATEPARSER_LOG) << "Impossible to extract plaintext";
} else { } else {
mResult.mPlainText = mTemplateWebEngineView->plainText(); mResult.mPlainText = mTemplateWebEngineView->plainText();
} }
...@@ -79,7 +79,7 @@ void TemplateParserExtractHtmlInfo::slotExtractToPlainTextFinished(bool success) ...@@ -79,7 +79,7 @@ void TemplateParserExtractHtmlInfo::slotExtractToPlainTextFinished(bool success)
connect(mExtractHtmlElementWebEngineView, &TemplateExtractHtmlElementWebEngineView::loadContentDone, this, &TemplateParserExtractHtmlInfo::slotExtractHtmlElementFinished); connect(mExtractHtmlElementWebEngineView, &TemplateExtractHtmlElementWebEngineView::loadContentDone, this, &TemplateParserExtractHtmlInfo::slotExtractHtmlElementFinished);
mExtractHtmlElementWebEngineView->setHtmlContent(mHtmlForExtractionHeaderAndBody); mExtractHtmlElementWebEngineView->setHtmlContent(mHtmlForExtractionHeaderAndBody);
} else { } else {
qCWarning(TEMPLATEPARSER_LOG) << "html string is empty for extracting to header and body"; qCDebug(TEMPLATEPARSER_LOG) << "html string is empty for extracting to header and body";
slotExtractHtmlElementFinished(false); slotExtractHtmlElementFinished(false);
} }
} }
...@@ -87,7 +87,7 @@ void TemplateParserExtractHtmlInfo::slotExtractToPlainTextFinished(bool success) ...@@ -87,7 +87,7 @@ void TemplateParserExtractHtmlInfo::slotExtractToPlainTextFinished(bool success)
void TemplateParserExtractHtmlInfo::slotExtractHtmlElementFinished(bool success) void TemplateParserExtractHtmlInfo::slotExtractHtmlElementFinished(bool success)
{ {
if (!success) { if (!success) {
qCWarning(TEMPLATEPARSER_LOG) << "Impossible to extract html element"; qCDebug(TEMPLATEPARSER_LOG) << "Impossible to extract html element";
} else { } else {
mResult.mBodyElement = mExtractHtmlElementWebEngineView->bodyElement(); mResult.mBodyElement = mExtractHtmlElementWebEngineView->bodyElement();
mResult.mHeaderElement = mExtractHtmlElementWebEngineView->headerElement(); mResult.mHeaderElement = mExtractHtmlElementWebEngineView->headerElement();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment