Commit f406df52 authored by Michael Reeves's avatar Michael Reeves

Cleanup logging

parent dde04cbd
......@@ -20,4 +20,5 @@
#include "Logging.h"
Q_LOGGING_CATEGORY(kdiffMain, "org.kde.kdiff3")
Q_LOGGING_CATEGORY(kdiffCore, "org.kde.kdiff3.core") //very noisey
//The following is very noisey if debug is turned on and not really useful unless your making changes in the core data processing.
Q_LOGGING_CATEGORY(kdiffCore, "org.kde.kdiff3.core", QtWarningMsg)
......@@ -780,7 +780,7 @@ void SourceData::FileData::removeComments()
Q_ASSERT(m_v.size() > 0);
for(int i = 0; i < size; ++i)
{
qCDebug(kdiffCore) << "line= " << QString(&p[i], m_v[line].size());
qCDebug(kdiffCore) << "line = " << QString(&p[i], m_v[line].size());
bool bWhite = true;
bool bCommentInLine = false;
......
......@@ -156,7 +156,7 @@ void KDiff3App::mainInit(TotalDiffStatus* pTotalDiffStatus, bool bLoadFiles, boo
// First get all input data.
pp.setInformation(i18n("Loading A"));
qCInfo(kdiffMain) << i18n("Loading A: %1 ", m_sd1.getFilename()) ;
qCInfo(kdiffMain) << i18n("Loading A: %1 ", m_sd1.getFilename());
if(bUseCurrentEncoding)
errors = m_sd1.readAndPreprocess(m_sd1.getEncoding(), false);
......@@ -171,7 +171,7 @@ void KDiff3App::mainInit(TotalDiffStatus* pTotalDiffStatus, bool bLoadFiles, boo
pp.step();
pp.setInformation(i18n("Loading B"));
qCInfo(kdiffMain) << i18n("Loading B: ", m_sd2.getFilename());
qCInfo(kdiffMain) << i18n("Loading B: %1", m_sd2.getFilename());
if(bUseCurrentEncoding)
errors = m_sd2.readAndPreprocess(m_sd2.getEncoding(), false);
......
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