Skip to content

Commit

Permalink
nvapi: Use tracing for entry point logging
Browse files Browse the repository at this point in the history
Same as all other entry points.
  • Loading branch information
jp7677 committed Feb 4, 2025
1 parent 37d9b51 commit 37c79a5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/nvapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,8 @@ extern "C" {
NvAPI_Status __cdecl NvAPI_Unload() {
constexpr auto n = __func__;

log::info(n);
if (log::tracing())
log::trace(n);

std::scoped_lock lock(initializationMutex);

Expand All @@ -353,7 +354,8 @@ extern "C" {
NvAPI_Status __cdecl NvAPI_Initialize() {
constexpr auto n = __func__;

log::info(n);
if (log::tracing())
log::trace(n);

std::scoped_lock lock(initializationMutex);

Expand Down

0 comments on commit 37c79a5

Please sign in to comment.