From cb61fcf6387f85e6d1bc93d93b5e9d8a2bffddc0 Mon Sep 17 00:00:00 2001 From: Aaron Kimbrell Date: Sun, 27 Sep 2026 09:39:21 -0500 Subject: [PATCH] feat(ugc): write crash reports to dump_folder like world servers Co-Authored-By: Claude Opus 5.5 --- dUgcServer/UgcServer.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dUgcServer/UgcServer.cpp b/dUgcServer/UgcServer.cpp index 3bafb1225..bb3091f8b 100644 --- a/dUgcServer/UgcServer.cpp +++ b/dUgcServer/UgcServer.cpp @@ -248,6 +248,9 @@ namespace { } int main(int argc, char** argv) { + Diagnostics::SetProcessName("Ugc"); + Diagnostics::SetProcessFileName(argv[0]); + Diagnostics::Initialize(); Diagnostics::SetProduceMemoryDump(true); std::signal(SIGINT, Game::OnSignal); std::signal(SIGTERM, Game::OnSignal); @@ -262,6 +265,8 @@ int main(int argc, char** argv) { // Like the other servers: logs/UgcServer/UgcServer_.log Server::SetupLogger("UgcServer_" + std::to_string(time(nullptr)), "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")); Game::config->LogSettings(); LOG("Starting UGC Server");