Commit 5863d29e authored by Jean-Francois Dockes's avatar Jean-Francois Dockes
Browse files

debug function

parent 3277ae4e
......@@ -336,6 +336,7 @@ bool MimeHandlerExecMultiple::next_document()
m_metaData[cstr_dj_keycontent].size() <<
" bytes of content, mtype [" << m_metaData[cstr_dj_keymt] <<
"] charset [" << m_metaData[cstr_dj_keycharset] << "]\n");
LOGDEB2("MHExecMultiple: metadata: \n" << metadataAsString());
return true;
}
......@@ -376,3 +376,13 @@ bool canIntern(const std::string mtype, RclConfig *cfg)
return true;
}
string RecollFilter::metadataAsString()
{
string s;
for (const auto& ent : m_metaData) {
if (ent.first == "content")
continue;
s += ent.first + "->" + ent.second + "\n";
}
return s;
}
......@@ -128,6 +128,7 @@ public:
// It converts from keyorigcharset to UTF-8 and sets keycharset.
bool txtdcode(const std::string& who);
std::string metadataAsString();
protected:
// We provide default implementation as not all handlers need both methods
......
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