diff options
-rw-r--r-- | network_manager_main.cpp | 3 | ||||
-rw-r--r-- | types.hpp | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/network_manager_main.cpp b/network_manager_main.cpp index 3828c9b..a428bce 100644 --- a/network_manager_main.cpp +++ b/network_manager_main.cpp @@ -26,9 +26,12 @@ std::unique_ptr<phosphor::network::Timer> restartTimer = nullptr; /** @brief refresh the network objects. */ void refreshObjects() { + using namespace phosphor::logging; if (manager) { + log<level::INFO>("Refreshing the objects."); manager->createChildObjects(); + log<level::INFO>("Refreshing complete."); } } @@ -23,7 +23,7 @@ constexpr auto restartTimeout = 3s; // refresh the objets after five seconds as network // configuration takes 3-4 sec after systemd-networkd restart. -constexpr auto refreshTimeout = restartTimeout + 5s; +constexpr auto refreshTimeout = restartTimeout + 7s; namespace systemd { |