Skip to content

Commit 018fd73

Browse files
authored
Merge pull request #179 from dongxinEric/misc/log-versions-when-starting-up
Log the version information to TraceEvent
2 parents bfacb05 + ea24405 commit 018fd73

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/DocLayer.actor.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,11 @@ ACTOR void setup(NetworkAddress na,
463463
if (!proxyto.present()) {
464464
state Reference<DocumentLayer> docLayer;
465465
state Reference<DatabaseContext> db;
466+
TraceEvent("StartingServer")
467+
.detail("DocLayerPkgName", FDB_DOC_VT_PACKAGE_NAME)
468+
.detail("DocLayerVersion", FDB_DOC_VT_VERSION)
469+
.detail("DocLayerSourceVersion", getGitVersion())
470+
.detail("FlowSourceVersion", getFlowGitVersion());
466471
try {
467472
auto cluster = fdb->createCluster(clusterFile);
468473
Reference<DatabaseContext> database = cluster->createDatabase();
@@ -607,7 +612,7 @@ void printHelp(const char* name) {
607612
Runs Document Layer in proxy mode on LISTEN_PORT proxying all commands
608613
to MongoDB server running on MONGODB_PORT.
609614
--fdb_datacenter_id DC_ID
610-
The id of the preferred datacenter to use when connecting to a FoundationDB cluster
615+
The id of the preferred datacenter to use when connecting to a FoundationDB cluster
611616
that's run in multi-dc mode
612617
)HELPTEXT",
613618
name);

0 commit comments

Comments
 (0)