aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/storage/zenstorageserver.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2026-01-19 15:47:59 +0100
committerGitHub Enterprise <[email protected]>2026-01-19 15:47:59 +0100
commit975babca65c6e118db268c6335a4ecbf7c2a9744 (patch)
tree08c9ad8a58a7a2393ab10b26666d5fd29d44bd63 /src/zenserver/storage/zenstorageserver.cpp
parentZenServerProcess API changes (#719) (diff)
downloadzen-975babca65c6e118db268c6335a4ecbf7c2a9744.tar.xz
zen-975babca65c6e118db268c6335a4ecbf7c2a9744.zip
zenserver API changes, some other minor changes (#720)
* add system metrics output to top command * removed unnecessary xmake directives * file system API/comment tweaks * fixed out-of-range access in httpserver test * updated ZenServer base API to allow customization by mode
Diffstat (limited to 'src/zenserver/storage/zenstorageserver.cpp')
-rw-r--r--src/zenserver/storage/zenstorageserver.cpp15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/zenserver/storage/zenstorageserver.cpp b/src/zenserver/storage/zenstorageserver.cpp
index 559695a94..b2cae6482 100644
--- a/src/zenserver/storage/zenstorageserver.cpp
+++ b/src/zenserver/storage/zenstorageserver.cpp
@@ -17,6 +17,7 @@
#include <zencore/sentryintegration.h>
#include <zencore/session.h>
#include <zencore/string.h>
+#include <zencore/system.h>
#include <zencore/thread.h>
#include <zencore/timer.h>
#include <zencore/trace.h>
@@ -676,8 +677,8 @@ ZenStorageServer::Run()
" \\/ \\/ \\/ \\/ \\/ \n");
ExtendableStringBuilder<256> BuildOptions;
- GetBuildOptions(BuildOptions);
- ZEN_INFO("Build options: {}", BuildOptions);
+ GetBuildOptions(BuildOptions, '\n');
+ ZEN_INFO("Build options ({}/{}):\n{}", GetOperatingSystemName(), GetCpuName(), BuildOptions);
}
ZEN_INFO(ZEN_APP_NAME " now running (pid: {})", GetCurrentProcessId());
@@ -897,6 +898,16 @@ ZenStorageServerMain::ZenStorageServerMain(ZenStorageServerConfig& ServerOptions
{
}
+ZenStorageServerMain::~ZenStorageServerMain()
+{
+}
+
+void
+ZenStorageServerMain::InitializeLogging()
+{
+ InitializeServerLogging(m_ServerOptions, /* WithCacheService */ true);
+}
+
void
ZenStorageServerMain::DoRun(ZenServerState::ZenServerEntry* Entry)
{