mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-07-18 03:22:20 +08:00
fixup! enhance: 更详细的日志
This commit is contained in:
parent
dfce427891
commit
5ceb8d78cb
10
src/main.cpp
10
src/main.cpp
@ -69,12 +69,12 @@ void crashHandler(int sig) {
|
||||
logFile << "Gihub: https://github.com/spark-store-project/spark-store/issues\n";
|
||||
logFile << "Build Date and Time: " << buildDateTime.toStdString() << "\n";
|
||||
gatherInfo(popen("cat ~/.config/spark-union/spark-store/config.ini", "r"), logFile, "User Config File");
|
||||
|
||||
|
||||
// Collecting System Information
|
||||
gatherInfo(popen("uname -m", "r"), logFile, "CPU Architecture");
|
||||
gatherInfo(popen("lsb_release -a", "r"), logFile, "Distribution info");
|
||||
gatherInfo(popen("LANG=C lscpu", "r"), logFile, "All CPU Info");
|
||||
gatherInfo(popen("free -h | grep Mem | awk '{print $2}'", "r"), logFile, "Memory Size");
|
||||
gatherInfo(popen("LANG=en_US.UTF-8 uname -m", "r"), logFile, "CPU Architecture");
|
||||
gatherInfo(popen("LANG=en_US.UTF-8 lsb_release -a", "r"), logFile, "Distribution info");
|
||||
gatherInfo(popen("LANG=en_US.UTF-8 lscpu", "r"), logFile, "All CPU Info");
|
||||
gatherInfo(popen("LANG=en_US.UTF-8 free -h | grep Mem | awk '{print $2}'", "r"), logFile, "Memory Size");
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user