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_