add config path to verbose info command (closes #1087)
This commit is contained in:
@@ -1881,6 +1881,9 @@ result_t MainLoop::executeInfo(const vector<string>& args, const string& user, o
|
|||||||
<< "conditional: " << m_messages->sizeConditional() << "\n"
|
<< "conditional: " << m_messages->sizeConditional() << "\n"
|
||||||
<< "poll: " << m_messages->sizePoll() << "\n"
|
<< "poll: " << m_messages->sizePoll() << "\n"
|
||||||
<< "update: " << m_messages->sizePassive();
|
<< "update: " << m_messages->sizePassive();
|
||||||
|
if (verbose) {
|
||||||
|
*ostream << "\nconfig path: " << m_scanHelper->getConfigPath();
|
||||||
|
}
|
||||||
m_busHandler->formatSeenInfo(ostream);
|
m_busHandler->formatSeenInfo(ostream);
|
||||||
return RESULT_OK;
|
return RESULT_OK;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -66,6 +66,11 @@ class ScanHelper : public Resolver {
|
|||||||
*/
|
*/
|
||||||
virtual ~ScanHelper();
|
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.
|
* Try to connect to the specified server.
|
||||||
* @param host the host name to connect to.
|
* @param host the host name to connect to.
|
||||||
|
|||||||
Reference in New Issue
Block a user