Added the capability to modify the DebugLevel by changing the various .conf files.
This commit is contained in:
@@ -149,7 +149,7 @@ GET_AUTH_TOKEN_INTERFACE_RTN(
|
||||
{
|
||||
CasaStatus retStatus;
|
||||
AuthTokenIfInstance *pAuthTokenIfInstance;
|
||||
|
||||
char *pDebugLevelSetting;
|
||||
|
||||
DbgTrace(1, "-GetAuthTokenInterface- Start\n", 0);
|
||||
|
||||
@@ -165,6 +165,19 @@ GET_AUTH_TOKEN_INTERFACE_RTN(
|
||||
goto exit;
|
||||
}
|
||||
|
||||
// Check if a DebugLevel has been configured
|
||||
pDebugLevelSetting = pModuleConfigIf->getEntryValue(pModuleConfigIf, "DebugLevel");
|
||||
if (pDebugLevelSetting != NULL)
|
||||
{
|
||||
DbgTrace(0, "-GetAuthTokenInterface- DebugLevel configured = %s\n", pDebugLevelSetting);
|
||||
|
||||
// Convert the number to hex
|
||||
DebugLevel = (int) dtoul(pDebugLevelSetting, strlen(pDebugLevelSetting));
|
||||
|
||||
// Free the buffer holding the debug level
|
||||
free(pDebugLevelSetting);
|
||||
}
|
||||
|
||||
// Allocate space for the interface instance
|
||||
pAuthTokenIfInstance = malloc(sizeof(*pAuthTokenIfInstance));
|
||||
if (pAuthTokenIfInstance)
|
||||
|
||||
Reference in New Issue
Block a user