Skip to content

Commit

Permalink
Merge pull request #1638 from Expensify/tyler-expose-command-count
Browse files Browse the repository at this point in the history
Add command count to Status response
  • Loading branch information
aldo-expensify authored Jan 26, 2024
2 parents b150219 + 7334ab7 commit 482a4bd
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions BedrockServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1691,10 +1691,11 @@ void BedrockServer::_status(unique_ptr<BedrockCommand>& command) {
pluginList.push_back(SComposeJSONObject(pluginData));
}
content["isLeader"] = state == SQLiteNodeState::LEADING ? "true" : "false";
content["plugins"] = SComposeJSONArray(pluginList);
content["state"] = SQLiteNode::stateName(state);
content["version"] = _version;
content["host"] = args["-nodeHost"];
content["plugins"] = SComposeJSONArray(pluginList);
content["state"] = SQLiteNode::stateName(state);
content["version"] = _version;
content["host"] = args["-nodeHost"];
content["commandCount"] = BedrockCommand::getCommandCount();

{
// Make it known if anything is known to cause crashes.
Expand Down

0 comments on commit 482a4bd

Please sign in to comment.