forked from qt-creator/qt-creator
Utils: Fix inconsistent debug output
Change-Id: Iccfae5e70e4f0992cbf16e05688547e54c637a27 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -83,7 +83,9 @@ RunResult DeviceShell::run(const CommandLine &cmd, const QByteArray &stdInData)
|
|||||||
|
|
||||||
if (useProcess) {
|
if (useProcess) {
|
||||||
QtcProcess proc;
|
QtcProcess proc;
|
||||||
proc.setCommand(createFallbackCommand(cmd));
|
const CommandLine fallbackCmd = createFallbackCommand(cmd);
|
||||||
|
qCDebug(deviceShellLog) << "Running fallback:" << fallbackCmd;
|
||||||
|
proc.setCommand(fallbackCmd);
|
||||||
proc.setWriteData(stdInData);
|
proc.setWriteData(stdInData);
|
||||||
|
|
||||||
proc.start();
|
proc.start();
|
||||||
@@ -111,7 +113,7 @@ RunResult DeviceShell::run(const CommandLine &cmd, const QByteArray &stdInData)
|
|||||||
.arg(id)
|
.arg(id)
|
||||||
.arg(QString::fromLatin1(stdInData.toBase64()))
|
.arg(QString::fromLatin1(stdInData.toBase64()))
|
||||||
.arg(cmd.toUserOutput());
|
.arg(cmd.toUserOutput());
|
||||||
qCDebug(deviceShellLog) << "Running:" << command;
|
qCDebug(deviceShellLog) << "Running via shell:" << command;
|
||||||
m_shellProcess->writeRaw(command.toUtf8());
|
m_shellProcess->writeRaw(command.toUtf8());
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user