Make logging of process exit an info message

This commit is contained in:
Martchus 2021-06-21 22:32:51 +02:00
parent 900dac793d
commit 04c82e3ec4
1 changed files with 1 additions and 1 deletions

View File

@ -394,7 +394,7 @@ void SyncthingProcess::start(const QString &program, const QStringList &argument
emit finished(rc, rc != 0 ? QProcess::CrashExit : QProcess::NormalExit);
if (ec) {
const auto msg = ec.message();
std::cerr << EscapeCodes::Phrases::Error << "Launched process " << m_process->child.native_handle() << " exited with error: " << msg
std::cerr << EscapeCodes::Phrases::Info << "Launched process " << m_process->child.native_handle() << " exited with error: " << msg
<< EscapeCodes::Phrases::End;
QMetaObject::invokeMethod(this, "handleError", Qt::QueuedConnection, Q_ARG(int, QProcess::Crashed),
Q_ARG(QString, QString::fromStdString(msg)), Q_ARG(bool, false));