Skip to content

Commit c5ca1bd

Browse files
committed
Fix logging
1 parent 22097e0 commit c5ca1bd

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

src/Storage.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,20 +118,17 @@ std::pair<T, bool> Storage::CopyFromStorage_(const char* type, std::string key)
118118
status = host->CopyFromStorage(host, keyString, &valuePlist);
119119

120120
GetContext()->Tracer->Message(
121-
"Storage::CopyFromStorage() type=%s key=\"%s\" status=%s",
121+
"Storage::CopyFromStorage() type=%s key=\"%s\" status=%s hasValue=%s",
122122
type,
123123
key.c_str(),
124-
StatusToString(status).c_str());
124+
StatusToString(status).c_str(),
125+
valuePlist ? "yes" : "no");
125126

126127
if (status != kAudioHardwareNoError) {
127128
goto end;
128129
}
129130

130131
if (!valuePlist) {
131-
GetContext()->Tracer->Message(
132-
"Storage::CopyFromStorage() type=%s key=\"%s\" value not found",
133-
type,
134-
key.c_str());
135132
goto end;
136133
}
137134

0 commit comments

Comments
 (0)