From 0de9decc7c21909f613ab5c03c6c09610267a0a2 Mon Sep 17 00:00:00 2001 From: Aaron Kimbrell Date: Sun, 27 Sep 2026 09:40:24 -0500 Subject: [PATCH] fix(ugc): name crash dumps like the other servers Co-Authored-By: Claude Opus 5.5 --- dUgcServer/UgcServer.cpp | 6 ++++-- docs/Dashboard.md | 2 +- docs/UgcServer.md | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/dUgcServer/UgcServer.cpp b/dUgcServer/UgcServer.cpp index bb3091f8b..9b8c6686f 100644 --- a/dUgcServer/UgcServer.cpp +++ b/dUgcServer/UgcServer.cpp @@ -248,7 +248,9 @@ namespace { } int main(int argc, char** argv) { - Diagnostics::SetProcessName("Ugc"); + // Crash dumps and the log file share this name (Crash_UgcServer__.log), like the other servers + const auto serviceName = "UgcServer_" + std::to_string(time(nullptr)); + Diagnostics::SetProcessName(serviceName); Diagnostics::SetProcessFileName(argv[0]); Diagnostics::Initialize(); Diagnostics::SetProduceMemoryDump(true); @@ -263,7 +265,7 @@ int main(int argc, char** argv) { } // Like the other servers: logs/UgcServer/UgcServer_.log - Server::SetupLogger("UgcServer_" + std::to_string(time(nullptr)), "UgcServer"); + Server::SetupLogger(serviceName, "UgcServer"); if (!Game::logger) return EXIT_FAILURE; // Crash reports go where the dashboard lists them (Server Health, crash dumps) if (!Game::config->GetValue("dump_folder").empty()) Diagnostics::SetOutDirectory(Game::config->GetValue("dump_folder")); diff --git a/docs/Dashboard.md b/docs/Dashboard.md index b60951ce1..2fa0b3d0b 100644 --- a/docs/Dashboard.md +++ b/docs/Dashboard.md @@ -662,7 +662,7 @@ the newest log files of one or all servers. The UGC server's logs are `UgcServer_