fixup! enhance: 更详细的日志

This commit is contained in:
2023-09-21 19:59:47 +08:00
parent dfce427891
commit 5ceb8d78cb

View File

@@ -71,10 +71,10 @@ void crashHandler(int sig) {
gatherInfo(popen("cat ~/.config/spark-union/spark-store/config.ini", "r"), logFile, "User Config File"); gatherInfo(popen("cat ~/.config/spark-union/spark-store/config.ini", "r"), logFile, "User Config File");
// Collecting System Information // Collecting System Information
gatherInfo(popen("uname -m", "r"), logFile, "CPU Architecture"); gatherInfo(popen("LANG=en_US.UTF-8 uname -m", "r"), logFile, "CPU Architecture");
gatherInfo(popen("lsb_release -a", "r"), logFile, "Distribution info"); gatherInfo(popen("LANG=en_US.UTF-8 lsb_release -a", "r"), logFile, "Distribution info");
gatherInfo(popen("LANG=C lscpu", "r"), logFile, "All CPU Info"); gatherInfo(popen("LANG=en_US.UTF-8 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 free -h | grep Mem | awk '{print $2}'", "r"), logFile, "Memory Size");