]> Nutra Git (v2) - gamesguru/feather.git/commitdiff
signal_handler: add version and OS info
authortobtoht <tob@featherwallet.org>
Tue, 28 Feb 2023 11:32:02 +0000 (12:32 +0100)
committertobtoht <tob@featherwallet.org>
Tue, 28 Feb 2023 11:32:02 +0000 (12:32 +0100)
src/main.cpp

index 8f39957a94a740a51a708c23d63005f8b02f7b83..1e52c8782412f669e4c74240d60279f1e35e6689 100644 (file)
@@ -44,6 +44,8 @@ void signal_handler(int signum) {
     if (config()->get(Config::writeStackTraceToDisk).toBool()) {
         QString crashLogPath{Config::defaultConfigDir().path() + "/crash_report.txt"};
         std::ofstream out(crashLogPath.toStdString());
+        out << QString("Version: %1-%2\n").arg(FEATHER_VERSION, FEATHER_COMMIT).toStdString();
+        out << QString("OS: %1\n").arg(QSysInfo::prettyProductName()).toStdString();
         out << keyStream.str();
         out.close();
     }