Skip to content

Commit

Permalink
Fix logging
Browse files Browse the repository at this point in the history
  • Loading branch information
gavv committed Jun 28, 2023
1 parent 22097e0 commit c5ca1bd
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/Storage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,20 +118,17 @@ std::pair<T, bool> Storage::CopyFromStorage_(const char* type, std::string key)
status = host->CopyFromStorage(host, keyString, &valuePlist);

GetContext()->Tracer->Message(
"Storage::CopyFromStorage() type=%s key=\"%s\" status=%s",
"Storage::CopyFromStorage() type=%s key=\"%s\" status=%s hasValue=%s",
type,
key.c_str(),
StatusToString(status).c_str());
StatusToString(status).c_str(),
valuePlist ? "yes" : "no");

if (status != kAudioHardwareNoError) {
goto end;
}

if (!valuePlist) {
GetContext()->Tracer->Message(
"Storage::CopyFromStorage() type=%s key=\"%s\" value not found",
type,
key.c_str());
goto end;
}

Expand Down

0 comments on commit c5ca1bd

Please sign in to comment.