Also print command input if KPMCORE_DEBUG is set.

This commit is contained in:
Andrius Štikonas 2019-02-09 13:39:33 +00:00
parent c8e401bc07
commit bfa6a327af
Signed by: andrius
GPG Key ID: E2E5CD054CB9CD3E
1 changed files with 2 additions and 0 deletions

View File

@ -293,6 +293,8 @@ bool ExternalCommand::writeData(Report& commandReport, const QByteArray& buffer,
bool ExternalCommand::write(const QByteArray& input)
{
if ( qEnvironmentVariableIsSet( "KPMCORE_DEBUG" ))
qDebug() << "Command input:" << QString::fromLocal8Bit(input);
d->m_Input = input;
return true;
}