add config path to verbose info command (closes #1087)

This commit is contained in:
John
2024-01-27 10:35:57 +01:00
parent 64727a4a83
commit 2ea20ed886
2 changed files with 8 additions and 0 deletions
+3
View File
@@ -1881,6 +1881,9 @@ result_t MainLoop::executeInfo(const vector<string>& args, const string& user, o
<< "conditional: " << m_messages->sizeConditional() << "\n"
<< "poll: " << m_messages->sizePoll() << "\n"
<< "update: " << m_messages->sizePassive();
if (verbose) {
*ostream << "\nconfig path: " << m_scanHelper->getConfigPath();
}
m_busHandler->formatSeenInfo(ostream);
return RESULT_OK;
}
+5
View File
@@ -66,6 +66,11 @@ class ScanHelper : public Resolver {
*/
virtual ~ScanHelper();
/**
* @return the (optionally corrected) config path for retrieving configuration files from.
*/
const string getConfigPath() const { return m_configPath; }
/**
* Try to connect to the specified server.
* @param host the host name to connect to.