Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

Commit

Permalink
Merge pull request #572 from robszewczyk/bug/logging_fixes
Browse files Browse the repository at this point in the history
Minor fixes to the revised logging code
  • Loading branch information
robszewczyk authored Apr 30, 2020
2 parents c479815 + 030e0d0 commit 4ccba6b
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1075,12 +1075,18 @@ const char *nl_Weave_DeviceManager_StatusReportToString(uint32_t profileId, uint

uint8_t nl_Weave_DeviceManager_GetLogFilter()
{
#if _WEAVE_USE_LOGGING
return nl::Weave::Logging::GetLogFilter();
#else
return nl::Weave::Logging::kLogCategory_None;
#endif
}

void nl_Weave_DeviceManager_SetLogFilter(uint8_t category)
{
#if _WEAVE_USE_LOGGING
nl::Weave::Logging::SetLogFilter(category);
#endif
}

WEAVE_ERROR nl_Weave_Stack_Init()
Expand Down Expand Up @@ -1228,7 +1234,7 @@ const char *nl_Weave_Stack_StatusReportToString(uint32_t profileId, uint16_t sta
return nl::StatusReportStr(profileId, statusCode);
}

#if WEAVE_LOG_ENABLE_DYNAMIC_LOGING_FUNCTION
#if _WEAVE_USE_LOGGING && WEAVE_LOG_ENABLE_DYNAMIC_LOGING_FUNCTION

// A pointer to the python logging function.
static LogMessageFunct sLogMessageFunct = NULL;
Expand Down

0 comments on commit 4ccba6b

Please sign in to comment.