summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--network_manager_main.cpp3
-rw-r--r--types.hpp2
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.");
}
}
diff --git a/types.hpp b/types.hpp
index 3fcbe2e..e650d3c 100644
--- a/types.hpp
+++ b/types.hpp
@@ -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
{
OpenPOWER on IntegriCloud