mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 22:56:12 -04:00
Enable manually set log level for fast pair windows
PiperOrigin-RevId: 527343929
This commit is contained in:
committed by
Copybara-Service
parent
5b602e3033
commit
a4be31137f
@@ -27,6 +27,7 @@ lexan.cc_windows_dll(
|
||||
"-Ithird_party",
|
||||
],
|
||||
defines = [
|
||||
"LOG_SEVERITY_VERBOSE",
|
||||
"_WIN32_WINNT=_WIN32_WINNT_WIN10",
|
||||
],
|
||||
tags = ["windows-dll"],
|
||||
@@ -57,6 +58,7 @@ lexan.cc_windows_dll(
|
||||
"-Ithird_party",
|
||||
],
|
||||
defines = [
|
||||
"LOG_SEVERITY_VERBOSE",
|
||||
"_WIN32_WINNT=_WIN32_WINNT_WIN10",
|
||||
],
|
||||
tags = ["windows-dll"],
|
||||
|
||||
@@ -24,6 +24,11 @@ namespace windows {
|
||||
|
||||
static FastPairWrapper *pWrapper_ = nullptr;
|
||||
void *InitFastPairWrapper() {
|
||||
#if defined(NEARBY_LOG_SEVERITY)
|
||||
// Direct override of logging level.
|
||||
NEARBY_LOG_SET_SEVERITY(NEARBY_LOG_SEVERITY);
|
||||
#endif // LOG_SEVERITY_VERBOSE;
|
||||
|
||||
FastPairWrapperImpl *pWrapper = new FastPairWrapperImpl();
|
||||
pWrapper_ = pWrapper;
|
||||
return pWrapper;
|
||||
@@ -36,7 +41,7 @@ void CloseFastPairWrapper(FastPairWrapper *pWrapper) {
|
||||
}
|
||||
|
||||
void __stdcall StartScan(FastPairWrapper *pWrapper) {
|
||||
NEARBY_LOGS(INFO) << "StartScan is called";
|
||||
NEARBY_LOGS(VERBOSE) << "StartScan is called";
|
||||
if (pWrapper_ == nullptr) {
|
||||
NEARBY_LOGS(INFO) << "The pWrapper is a null pointer.";
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user