Extend log warning about duplicate output

This makes the log message actionable, in a way - users now have an easier time to find the duplicated output(s).
This commit is contained in:
Stefan Hoffmeister 2023-12-18 22:46:37 +01:00 committed by Xaver Hugl
parent c21dea61c0
commit 83323c39cd

View file

@ -577,7 +577,7 @@ void OutputConfigurationStore::load()
&& data->connectorName == state.connectorName;
});
if (hasDuplicate) {
qCWarning(KWIN_CORE, "Duplicate output found in config");
qCWarning(KWIN_CORE) << "Duplicate output found in config for edidIdentifier:" << state.edidIdentifier.value_or("<empty>") << "; connectorName:" << state.connectorName.value_or("<empty>") << "; mstPath:" << state.mstPath;
outputDatas.push_back(std::nullopt);
continue;
}