Skip to content

Commit

Permalink
add config path to verbose info command (closes #1087)
Browse files Browse the repository at this point in the history
  • Loading branch information
john30 committed Jan 27, 2024
1 parent 64727a4 commit 2ea20ed
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ebusd/mainloop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
5 changes: 5 additions & 0 deletions src/ebusd/scan.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 2ea20ed

Please sign in to comment.