From 2ea20ed8860ffba11c716e1b601160d86c5693d2 Mon Sep 17 00:00:00 2001 From: John Date: Sat, 27 Jan 2024 10:35:57 +0100 Subject: [PATCH] add config path to verbose info command (closes #1087) --- src/ebusd/mainloop.cpp | 3 +++ src/ebusd/scan.h | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/src/ebusd/mainloop.cpp b/src/ebusd/mainloop.cpp index 6ad18c76..79869fb1 100644 --- a/src/ebusd/mainloop.cpp +++ b/src/ebusd/mainloop.cpp @@ -1881,6 +1881,9 @@ result_t MainLoop::executeInfo(const vector& 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; } diff --git a/src/ebusd/scan.h b/src/ebusd/scan.h index 6cb4d6c3..99d28fe9 100644 --- a/src/ebusd/scan.h +++ b/src/ebusd/scan.h @@ -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.