Commit d89fc0bf authored by Christian Kandeler's avatar Christian Kandeler

QbsProjectManager: Logging improvements.

- Make messages with level "warning" or "error" appear in the Issues
- Do not suppress messages of level "info". People add ""
  calls into their projects for debugging and they expect to see the
  output in Creator.

Task-number: QTCREATORBUG-15983
Change-Id: I6c84bc1ef08dbf85d7e88af864b18f64fcedfe1a
Reviewed-by: Jake Petroules's avatarJake Petroules <>
parent 74b6d2e7
......@@ -79,6 +79,10 @@ void QbsLogSink::doPrintMessage(qbs::LoggerLevel level, const QString &message,
QMutexLocker l(&m_mutex);
if (level <= qbs::LoggerWarning) {
m_messages.append(qbs::logLevelTag(level) + message);
QMetaObject::invokeMethod(this, "sendMessages", Qt::QueuedConnection);
......@@ -78,7 +78,7 @@ QbsManager::QbsManager() :
this, &QbsManager::updateAllProfiles);
m_logSink = new QbsLogSink(this);
int level = qbs::LoggerWarning;
int level = qbs::LoggerInfo;
const QString levelEnv = QString::fromLocal8Bit(qgetenv("QBS_LOG_LEVEL"));
if (!levelEnv.isEmpty()) {
bool ok = false;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment