diff --git a/runtime/CMakeLists.txt b/runtime/CMakeLists.txt index 9e1b9918..fca3324f 100644 --- a/runtime/CMakeLists.txt +++ b/runtime/CMakeLists.txt @@ -94,13 +94,6 @@ set(headers message(INFO " Headers: ${headers}") message(INFO " Found the following sources: ${sources}") - -if(CMAKE_BUILD_TYPE STREQUAL "Debug") - add_definitions(-DSPDLOG_ACTIVE_LEVEL=SPDLOG_LEVEL_DEBUG) -else() - add_definitions(-DSPDLOG_ACTIVE_LEVEL=SPDLOG_LEVEL_INFO) -endif() - add_library( ${PROJECT_NAME} ${sources} diff --git a/runtime/include/bpftime_logger.hpp b/runtime/include/bpftime_logger.hpp index ad74fc45..1a868e94 100644 --- a/runtime/include/bpftime_logger.hpp +++ b/runtime/include/bpftime_logger.hpp @@ -22,7 +22,6 @@ inline std::string expand_user_path(const std::string &inputPath) { return "console"; } - if (inputPath.size() == 1 || inputPath[1] == '/') { // Replace "~" with the home directory std::string expandedPath = (std::filesystem::path(homeDir) / inputPath.substr(1)).string();