Decrease log level of reporting choosing backend

Automatic backend selection is a very normal by-design activity that warrants informing. Decrease from log level Warning to Info to avoid spoiling the log at too high of a log priority.
This commit is contained in:
Stefan Hoffmeister 2023-12-18 22:02:42 +01:00 committed by Vlad Zahorodnii
parent 71326cc91c
commit 44419d832d

View file

@ -437,13 +437,13 @@ int main(int argc, char *argv[])
backendType = BackendType::Virtual;
} else {
if (qEnvironmentVariableIsSet("WAYLAND_DISPLAY")) {
qWarning("No backend specified, automatically choosing Wayland because WAYLAND_DISPLAY is set");
qInfo("No backend specified, automatically choosing Wayland because WAYLAND_DISPLAY is set");
backendType = BackendType::Wayland;
} else if (qEnvironmentVariableIsSet("DISPLAY")) {
qWarning("No backend specified, automatically choosing X11 because DISPLAY is set");
qInfo("No backend specified, automatically choosing X11 because DISPLAY is set");
backendType = BackendType::X11;
} else {
qWarning("No backend specified, automatically choosing drm");
qInfo("No backend specified, automatically choosing drm");
backendType = BackendType::Kms;
}
}