1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-06 16:05:13 -04:00

Print build and system information at the start of the log

This commit is contained in:
f4exb
2018-01-07 01:48:53 +01:00
parent 7bdc161c91
commit 05491fd62b
2 changed files with 25 additions and 0 deletions
+13
View File
@@ -17,6 +17,7 @@
///////////////////////////////////////////////////////////////////////////////////
#include <QCoreApplication>
#include <QSysInfo>
#include <signal.h>
#include <unistd.h>
@@ -62,6 +63,18 @@ static int runQtApplication(int argc, char* argv[], qtwebapp::LoggerWithFile *lo
MainParser parser;
parser.parse(a);
#if QT_VERSION >= 0x050400
qInfo("%s v%s Qt %s %s %s",
qPrintable(qApp->applicationName()),
qPrintable(qApp->applicationVersion()),
qPrintable(QString(QT_VERSION_STR)),
qPrintable(QSysInfo::currentCpuArchitecture()),
qPrintable(QSysInfo::prettyProductName()));
#else
qInfo("%s v%s Qt %s", qPrintable(qApp->applicationName()), qPrintable((qApp->applicationVersion()), qPrintable(QString(QT_VERSION_STR)));
#endif
MainCore m(logger, parser, &a);
// This will cause the application to exit when the main core is finished