mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-02 02:43:44 +00:00
feat: log the build identifier at startup and show it on the dashboard About page
Every server logs BuildInfo's build string as its version; the About page also shows the build kind and commit, and log bundles name the build. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -42,6 +42,7 @@
|
||||
#include "UgcProcessor.h"
|
||||
#include "UgcStorage.h"
|
||||
#include "UgcThrottle.h"
|
||||
#include "BuildInfo.h"
|
||||
|
||||
namespace Game {
|
||||
Logger* logger = nullptr;
|
||||
@@ -646,6 +647,7 @@ int main(int argc, char** argv) {
|
||||
if (!Game::config->GetValue("dump_folder").empty()) Diagnostics::SetOutDirectory(Game::config->GetValue("dump_folder"));
|
||||
Game::config->LogSettings();
|
||||
LOG("Starting UGC Server");
|
||||
LOG("Version: %s", std::string(BuildInfo::buildString).c_str());
|
||||
|
||||
const auto res = ResPath();
|
||||
if (res.empty() || !std::filesystem::exists(res)) {
|
||||
|
||||
Reference in New Issue
Block a user