main/app: move message pattern to main

This commit is contained in:
Kiara Navarro 2022-06-20 17:35:38 -05:00
parent aec12f7b0b
commit 401a140449
No known key found for this signature in database
GPG Key ID: CBA9F2172CE33FBA
2 changed files with 3 additions and 2 deletions

View File

@ -75,8 +75,6 @@ AppWindow::AppWindow(QWidget *parent)
, appVersion(APP_VERSION)
, appGitHash(APP_GIT_HASH)
{
qSetMessagePattern("%{time process}: [%{type}] %{message}");
// qDebug().setVerbosity(0);
qDebug() << "Application start";

View File

@ -17,6 +17,9 @@ static void tryExitGracefully(int s) {
#endif
int main(int argc, char *argv[]) {
qSetMessagePattern("%{time process}: [%{type}] %{message}");
app = new QApplication(argc, argv);
QCoreApplication::setOrganizationName("LibreVNA");
QCoreApplication::setApplicationName("LibreVNA-GUI");