From c6baed2d239291352754228611e5eff645c8c7e7 Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Fri, 5 Jan 2024 16:30:22 -0800 Subject: [PATCH] add revision and build date to logs --- src/Main.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Main.cc b/src/Main.cc index ddacf2d6..96acd5bc 100644 --- a/src/Main.cc +++ b/src/Main.cc @@ -1864,6 +1864,11 @@ Action a_replay_ep3_battle_commands( Action a_run_server_replay_log( "", nullptr, +[](Arguments& args) { + { + string build_date = format_time(BUILD_TIMESTAMP); + config_log.info("newserv %s compiled at %s", GIT_REVISION_HASH, build_date.c_str()); + } + if (!isdir("system/players")) { config_log.info("Players directory does not exist; creating it"); mkdir("system/players", 0755);