Skip to content

Commit

Permalink
Define logging modules.
Browse files Browse the repository at this point in the history
  • Loading branch information
szmyd committed Dec 13, 2023
1 parent 3375c8a commit 02fa759
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/lib/iomgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ SISL_OPTION_GROUP(iomgr,
(hdd_streams, "", "hdd_streams", "Number of streams for hdd - overridden value",
::cxxopts::value< uint32_t >(), "count"))

SISL_LOGGING_DEF(iomgr)

namespace iomgr {

IOManager::IOManager() : m_fiber_ordinal_reserver(IOManager::max_io_fibers) {
Expand Down
4 changes: 3 additions & 1 deletion src/lib/spdk/iomgr_impl_spdk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ extern "C" {
#include <rte_malloc.h>
}

SISL_LOGGING_DEF(spdk)

namespace iomgr {
bool IOManagerSpdkImpl::g_spdk_env_prepared{false};

Expand Down Expand Up @@ -308,4 +310,4 @@ void IOManagerSpdkImpl::stop_spdk() {
m_mempool->reset();
}

} // namespace iomgr
} // namespace iomgr
4 changes: 3 additions & 1 deletion src/lib/watchdog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
#include "watchdog.hpp"
#include "iomgr_config.hpp"

SISL_LOGGING_DEF(io_wd)

namespace iomgr {
IOWatchDog::IOWatchDog() {
m_wd_on = IM_DYNAMIC_CONFIG(drive.io_watchdog_timer_on);
Expand Down Expand Up @@ -71,4 +73,4 @@ void IOWatchDog::io_timer() {
}
}
}
} // namespace iomgr
} // namespace iomgr

0 comments on commit 02fa759

Please sign in to comment.