mirror of
https://github.com/feather-wallet/feather.git
synced 2024-11-16 17:27:38 +00:00
signal_handler: add version and OS info
This commit is contained in:
parent
a88595b42e
commit
4fe4136441
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue