Skip to content

Commit

Permalink
feat: Logger optimized
Browse files Browse the repository at this point in the history
  • Loading branch information
Mairon1206 committed Jul 29, 2024
1 parent 553bf63 commit 21b81ab
Show file tree
Hide file tree
Showing 7 changed files with 2,367 additions and 18 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ find_package(nlohmann_json REQUIRED)

add_executable(${PROJECT_NAME})

# definitions for Logger
target_compile_definitions(${PROJECT_NAME}
PUBLIC
$<$<CONFIG:Debug>:EVENTO_DEBUG>
$<$<CONFIG:Release>:EVENTO_RELEASE>
)

# source code
add_subdirectory(src)
# sast-link-sdk
Expand Down
4 changes: 2 additions & 2 deletions src/Infrastructure/Network/network.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ void start_sast_link() {
[]() -> net::awaitable<void> {
auto result = co_await sast_link::login();
if (result) {
LOG_INFO("code: {}\n", result.value());
spdlog::info("code: {}\n", result.value());
} else {
LOG_ERROR("Login failed: {}\n", result.error());
spdlog::error("Login failed: {}\n", result.error());
}
},
net::detached);
Expand Down
Loading

0 comments on commit 21b81ab

Please sign in to comment.