mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-02 10:53:44 +00:00
feat(ugc): write crash reports to dump_folder like world servers
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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_<start time>.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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user