Skip to content

Commit

Permalink
Refs #22729: Flush Log in destructor
Browse files Browse the repository at this point in the history
Signed-off-by: cferreiragonz <[email protected]>
  • Loading branch information
cferreiragonz committed Mar 3, 2025
1 parent 3d7dcab commit fc66025
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tools/fds/CliDiscoveryManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,13 @@ CliDiscoveryManager::CliDiscoveryManager()
}
}

CliDiscoveryManager::~CliDiscoveryManager()
{
Log::Flush();
std::cout.flush();
std::cerr.flush();
}

std::string CliDiscoveryManager::get_default_shared_dir()
{
std::string shm_path;
Expand Down
5 changes: 5 additions & 0 deletions tools/fds/CliDiscoveryManager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ class CliDiscoveryManager
*/
CliDiscoveryManager();

/**
* @brief Destructor
*/
~CliDiscoveryManager();

/**
* @brief Get the default shared directory used to communicate servers' info between processes.
* @return The default shared directory
Expand Down

0 comments on commit fc66025

Please sign in to comment.