void NSAcceptedProviders::addProvider(std::shared_ptr<NSProvider> provider)
{
std::lock_guard<std::mutex> lock(m_mutex);
- NS_LOG_V(DEBUG, "AcceptedProviders::addProvider Id : %s", provider->getProviderId().c_str());
+ NS_LOG_V(INFO_PRIVATE, "AcceptedProviders::addProvider Id : %s", provider->getProviderId().c_str());
m_providers[provider->getProviderId()] = provider;
return;
}
void NSAcceptedProviders::removeProvider(const std::string &id)
{
std::lock_guard<std::mutex> lock(m_mutex);
- NS_LOG_V(DEBUG, "AcceptedProviders::removeProvider Id : %s", id.c_str());
+ NS_LOG_V(INFO_PRIVATE, "AcceptedProviders::removeProvider Id : %s", id.c_str());
m_providers.erase(id);
return;
}
bool NSAcceptedProviders::isAccepted(const std::string &id)
{
std::lock_guard<std::mutex> lock(m_mutex);
- NS_LOG_V(DEBUG, "AcceptedProviders::isAccepted Id : %s", id.c_str());
+ NS_LOG_V(INFO_PRIVATE, "AcceptedProviders::isAccepted Id : %s", id.c_str());
if ( m_providers.find(id) == m_providers.end() )
{
NS_LOG(DEBUG, "isAccepted : Not Found Provider with given ID");
void NSConsumerService::onProviderStateReceived(::NSProvider *provider, ::NSProviderState state)
{
NS_LOG(DEBUG, "onNSProviderStateChanged - IN");
- NS_LOG_V(DEBUG, "provider Id : %s", provider->providerId);
+ NS_LOG_V(INFO_PRIVATE, "provider Id : %s", provider->providerId);
NS_LOG_V(DEBUG, "state : %d", (int)state);
std::string provId;
void NSConsumerService::onNSMessageReceived(::NSMessage *message)
{
NS_LOG(DEBUG, "onNSMessageReceived - IN");
- NS_LOG_V(DEBUG, "message->providerId : %s", message->providerId);
+ NS_LOG_V(INFO_PRIVATE, "message->providerId : %s", message->providerId);
NSMessage nsMessage(message);
void NSConsumerService::onNSSyncInfoReceived(::NSSyncInfo *syncInfo)
{
NS_LOG(DEBUG, "onNSSyncInfoReceived - IN");
- NS_LOG_V(DEBUG, "syncInfo->providerId : %s", syncInfo->providerId);
+ NS_LOG_V(INFO_PRIVATE, "syncInfo->providerId : %s", syncInfo->providerId);
NSSyncInfo nsSyncInfo(syncInfo);
NSResult NSConsumerService::enableRemoteService(const std::string &serverAddress)
{
NS_LOG(DEBUG, "enableRemoteService - IN");
- NS_LOG_V(DEBUG, "Server Address : %s", serverAddress.c_str());
+ NS_LOG_V(INFO_PRIVATE, "Server Address : %s", serverAddress.c_str());
NSResult result = NSResult::ERROR;
#ifdef WITH_CLOUD
result = (NSResult) NSConsumerEnableRemoteService(OICStrdup(serverAddress.c_str()));
const std::string &topicName)
{
NS_LOG(DEBUG, "subscribeMQService - IN");
- NS_LOG_V(DEBUG, "Server Address : %s", serverAddress.c_str());
+ NS_LOG_V(INFO_PRIVATE, "Server Address : %s", serverAddress.c_str());
NSResult result = NSResult::ERROR;
#ifdef WITH_MQ
result = (NSResult) NSConsumerSubscribeMQService(
iter = iter->next;\r
}\r
}\r
- NS_LOG_V(DEBUG, "calling Lower layer UpdateTopicList for Provider Id : %s",\r
+ NS_LOG_V(INFO_PRIVATE, "calling Lower layer UpdateTopicList for Provider Id : %s",\r
getProviderId().c_str());\r
NSResult result = (NSResult) NSConsumerUpdateTopicList(getProviderId().c_str(), topicLL);\r
\r
void NSAcceptedConsumers::addConsumer(std::shared_ptr<NSConsumer> consumer)
{
std::lock_guard<std::mutex> lock(m_mutex);
- NS_LOG_V(DEBUG, "AcceptedConsumers::addConsumer Id : %s", consumer->getConsumerId().c_str());
+ NS_LOG_V(INFO_PRIVATE, "AcceptedConsumers::addConsumer Id : %s", consumer->getConsumerId().c_str());
m_consumers[consumer->getConsumerId()] = consumer;
return;
}
void NSAcceptedConsumers::removeConsumer(const std::string &id)
{
std::lock_guard<std::mutex> lock(m_mutex);
- NS_LOG_V(DEBUG, "AcceptedConsumers::removeConsumer Id : %s", id.c_str());
+ NS_LOG_V(INFO_PRIVATE, "AcceptedConsumers::removeConsumer Id : %s", id.c_str());
m_consumers.erase(id);
return;
}
bool NSAcceptedConsumers::isAccepted(const std::string &id)
{
std::lock_guard<std::mutex> lock(m_mutex);
- NS_LOG_V(DEBUG, "AcceptedConsumers::isAccepted Id : %s", id.c_str());
+ NS_LOG_V(INFO_PRIVATE, "AcceptedConsumers::isAccepted Id : %s", id.c_str());
if ( m_consumers.find(id) == m_consumers.end() )
{
NS_LOG(DEBUG, "isAccepted : Not Found Consumer with given ID");
NSResult NSProviderService::enableRemoteService(const std::string &serverAddress)\r
{\r
NS_LOG(DEBUG, "enableRemoteService - IN");\r
- NS_LOG_V(DEBUG, "Server Address : %s", serverAddress.c_str());\r
+ NS_LOG_V(INFO_PRIVATE, "Server Address : %s", serverAddress.c_str());\r
NSResult result = NSResult::ERROR;\r
#ifdef WITH_CLOUD\r
result = (NSResult) NSProviderEnableRemoteService(OICStrdup(serverAddress.c_str()));\r
NSResult NSProviderService::disableRemoteService(const std::string &serverAddress)\r
{\r
NS_LOG(DEBUG, "disableRemoteService - IN");\r
- NS_LOG_V(DEBUG, "Server Address : %s", serverAddress.c_str());\r
+ NS_LOG_V(INFO_PRIVATE, "Server Address : %s", serverAddress.c_str());\r
NSResult result = NSResult::ERROR;\r
#ifdef WITH_CLOUD\r
result = (NSResult) NSProviderDisableRemoteService(OICStrdup(serverAddress.c_str()));\r
const std::string &topicName)\r
{\r
NS_LOG(DEBUG, "subscribeMQService - IN");\r
- NS_LOG_V(DEBUG, "Server Address : %s", serverAddress.c_str());\r
+ NS_LOG_V(INFO_PRIVATE, "Server Address : %s", serverAddress.c_str());\r
NSResult result = NSResult::ERROR;\r
#ifdef WITH_MQ\r
result = (NSResult) NSProviderSubscribeMQService(\r
\r
::NSMessage *nsMsg = getNSMessage(msg);\r
\r
- NS_LOG_V(DEBUG, "nsMsg->providerId : %s", nsMsg->providerId);\r
+ NS_LOG_V(INFO_PRIVATE, "nsMsg->providerId : %s", nsMsg->providerId);\r
result = (NSResult) NSSendMessage(nsMsg);\r
OICFree(nsMsg->dateTime);\r
OICFree(nsMsg->title);\r
NSMessage nsMessage(message);\r
\r
NS_LOG_V(DEBUG, "Message ID : %lld", (long long int) nsMessage.getMessageId());\r
- NS_LOG_V(DEBUG, "Provider ID : %s", nsMessage.getProviderId().c_str());\r
+ NS_LOG_V(INFO_PRIVATE, "Provider ID : %s", nsMessage.getProviderId().c_str());\r
NS_LOG(DEBUG, "createMessage - OUT");\r
\r
OICFree(message);\r
OICStrcpy(retSync->providerId, UUID_STRING_SIZE, providerId);
OICFree(providerId);
- NS_LOG_V(DEBUG, "Provider ID : %s", retSync->providerId);
+ NS_LOG_V(INFO_PRIVATE, "Provider ID : %s", retSync->providerId);
NS_LOG_V(DEBUG, "Sync ID : %lld", (long long int)retSync->messageId);
NS_LOG_V(DEBUG, "Sync State : %d", (int) retSync->state);
retAddr->port = port;
NS_LOG(DEBUG, "Change Address for TCP request");
- NS_LOG_V(DEBUG, "Origin : %s", inputaddress);
- NS_LOG_V(DEBUG, "Changed Addr : %s", retAddr->addr);
- NS_LOG_V(DEBUG, "Changed Port : %d", retAddr->port);
+ NS_LOG_V(INFO_PRIVATE, "Origin : %s", address);
+ NS_LOG_V(INFO_PRIVATE, "Changed Addr : %s", retAddr->addr);
+ NS_LOG_V(INFO_PRIVATE, "Changed Port : %d", retAddr->port);
return retAddr;
}
NS_LOG(DEBUG, "get provider id");
char * pId = NULL;
getResult = OCRepPayloadGetPropString(payload, NS_ATTRIBUTE_PROVIDER_ID, &pId);
- NS_LOG_V (DEBUG, "provider id: %s", pId);
+ NS_LOG_V (INFO_PRIVATE, "provider id: %s", pId);
NS_VERIFY_NOT_NULL(getResult == true ? (void *) 1 : NULL, NULL);
NS_LOG(DEBUG, "create NSMessage");
}
}
- NS_LOG_V(DEBUG, "subscribe to %s:%d", connections->addr->addr, connections->addr->port);
+ NS_LOG_V(INFO_PRIVATE, "subscribe to %s:%d", connections->addr->addr, connections->addr->port);
NS_LOG(DEBUG, "get subscribe message query");
char * query = NULL;
NS_LOG_V(DEBUG, "Sync ID : %lld", (long long int)retSync->messageId);
NS_LOG_V(DEBUG, "Sync State : %d", (int) retSync->state);
- NS_LOG_V(DEBUG, "Sync Provider ID : %s", retSync->providerId);
+ NS_LOG_V(INFO_PRIVATE, "Sync Provider ID : %s", retSync->providerId);
return retSync;
}
{
if (connections->isSubscribing == false)
{
- NS_LOG_V(DEBUG, "unsubscribed to %s:%d",
+ NS_LOG_V(INFO_PRIVATE, "unsubscribed to %s:%d",
connections->addr->addr, connections->addr->port);
connections = connections->next;
continue;
}
- NS_LOG_V(DEBUG, "cancel subscribe to %s:%d",
+ NS_LOG_V(INFO_PRIVATE, "cancel subscribe to %s:%d",
connections->addr->addr, connections->addr->port);
OCCancel(connections->messageHandle, NS_QOS, NULL, 0);
OCCancel(connections->syncHandle, NS_QOS, NULL, 0);
}
OCRepPayloadSetPropString(payload, NS_ATTRIBUTE_CONSUMER_ID, *NSGetConsumerId());
- NS_LOG_V(DEBUG, "NS_ATTRIBUTE_CONSUMER_ID: %s", *NSGetConsumerId());
+ NS_LOG_V(INFO_PRIVATE, "NS_ATTRIBUTE_CONSUMER_ID: %s", *NSGetConsumerId());
iter = topicLL;
int iterSize = 0;
NS_VERIFY_STACK_SUCCESS(NSOCResultToSuccess(clientResponse->result),
OC_STACK_KEEP_TRANSACTION)
- NS_LOG_V(DEBUG, "GET response income : %s:%d",
+ NS_LOG_V(INFO_PRIVATE, "GET response income : %s:%d",
clientResponse->devAddr.addr, clientResponse->devAddr.port);
NS_LOG_V(DEBUG, "GET response result : %d",
clientResponse->result);
NS_VERIFY_STACK_SUCCESS(
NSOCResultToSuccess(clientResponse->result), OC_STACK_KEEP_TRANSACTION);
- NS_LOG_V(DEBUG, "Presence income : %s:%d",
+ NS_LOG_V(INFO_PRIVATE, "Presence income : %s:%d",
clientResponse->devAddr.addr, clientResponse->devAddr.port);
NS_LOG_V(DEBUG, "Presence result : %d",
clientResponse->result);
NS_VERIFY_NOT_NULL(clientResponse->payload, OC_STACK_KEEP_TRANSACTION);
NS_VERIFY_STACK_SUCCESS(NSOCResultToSuccess(clientResponse->result), OC_STACK_KEEP_TRANSACTION);
- NS_LOG_V(DEBUG, "Discover income : %s:%d",
+ NS_LOG_V(INFO_PRIVATE, "Discover income : %s:%d",
clientResponse->devAddr.addr, clientResponse->devAddr.port);
NS_LOG_V(DEBUG, "Discover result : %d",
clientResponse->result);
NS_VERIFY_NOT_NULL(clientResponse, OC_STACK_KEEP_TRANSACTION);
NS_VERIFY_STACK_SUCCESS(NSOCResultToSuccess(clientResponse->result), OC_STACK_KEEP_TRANSACTION);
- NS_LOG_V(DEBUG, "GET response income : %s:%d",
+ NS_LOG_V(INFO_PRIVATE, "GET response income : %s:%d",
clientResponse->devAddr.addr, clientResponse->devAddr.port);
NS_LOG_V(DEBUG, "GET response result : %d",
clientResponse->result);
}
else
{
- NS_LOG_V(DEBUG, "Request discover But Adapter is not IP : %d", address->adapter);
+ NS_LOG_V(INFO_PRIVATE, "Request discover But Adapter is not IP : %d", address->adapter);
}
}
else
bool isStartedConsumer = NSIsStartedConsumer();
NS_VERIFY_NOT_NULL(isStartedConsumer == true ? (void *) 1 : NULL, NULL);
- NS_LOG_V(DEBUG, "NSProvider ID: %s", providerId);
+ NS_LOG_V(INFO_PRIVATE, "NSProvider ID: %s", providerId);
NSProvider_internal * prov_internal = NSConsumerFindNSProvider(providerId);
NS_VERIFY_NOT_NULL(prov_internal, NULL);
isSubscribing |= infos->isSubscribing;
if (infos->addr->adapter == newAdapter && infos->isSubscribing == true)
{
- NS_LOG_V(DEBUG, "This provider already discovered : %s:%d",
+ NS_LOG_V(INFO_PRIVATE, "This provider already discovered : %s:%d",
infos->addr->addr, infos->addr->port);
NS_LOG_V(DEBUG, "Subscription : %d", infos->isSubscribing);
return;
NSResult ret = NSConsumerStorageDelete(providerCache, provider->providerId);
NS_VERIFY_NOT_NULL_V(ret == NS_OK ? (void *)1 : NULL);
- NS_LOG_V(DEBUG, "Stopped Provider : %s", provider->providerId);
+ NS_LOG_V(INFO_PRIVATE, "Stopped Provider : %s", provider->providerId);
NSProvider * prov = NSCopyProvider(provider);
NSProviderChanged(prov, NS_STOPPED);
NSRemoveProvider(prov);
{
NS_VERIFY_NOT_NULL_V(msg);
- NS_LOG_V(DEBUG, "confirmed by : %s", msg->providerId);
+ NS_LOG_V(INFO_PRIVATE, "confirmed by : %s", msg->providerId);
NSCacheList * ProviderCache = *(NSGetProviderCacheList());
NS_VERIFY_NOT_NULL(clientResponse->payload, OC_STACK_KEEP_TRANSACTION);
NS_LOG(DEBUG, "income get response of MQ broker");
- NS_LOG_V(DEBUG, "MQ GET response income : %s:%d",
+ NS_LOG_V(INFO_PRIVATE, "MQ GET response income : %s:%d",
clientResponse->devAddr.addr, clientResponse->devAddr.port);
NS_LOG_V(DEBUG, "MQ GET response result : %d",
clientResponse->result);
NS_VERIFY_NOT_NULL(clientResponse->payload, OC_STACK_KEEP_TRANSACTION);
NS_LOG(DEBUG, "income observe response of MQ notification");
- NS_LOG_V(DEBUG, "MQ OBS response income : %s:%d",
+ NS_LOG_V(INFO_PRIVATE, "MQ OBS response income : %s:%d",
clientResponse->devAddr.addr, clientResponse->devAddr.port);
NS_LOG_V(DEBUG, "MQ OBS response result : %d",
clientResponse->result);
NSCacheElement * obj = (NSCacheElement *) OICMalloc(sizeof(NSCacheElement));
NS_VERIFY_NOT_NULL_WITH_POST_CLEANING(obj, NS_ERROR, pthread_mutex_unlock(mutex));
- NS_LOG_V(DEBUG, "New Object address : %s:%d", newProvObj->connection->addr->addr, newProvObj->connection->addr->port);
+ NS_LOG_V(INFO_PRIVATE, "New Object address : %s:%d", newProvObj->connection->addr->addr, newProvObj->connection->addr->port);
obj->data = (void *) NSCopyProvider_internal(newProvObj);
if (!obj->data)
NS_VERIFY_NOT_NULL_V(info);
NS_LOG_V(DEBUG, "adapter : %d", info->adapter);
- NS_LOG_V(DEBUG, "remote_address : %s:%d", info->addr, info->port);
+ NS_LOG_V(INFO_PRIVATE, "remote_address : %s:%d", info->addr, info->port);
NS_LOG_V(DEBUG, "isConnect : %d", connected);
NSTaskType type = TASK_EVENT_CONNECTED;
NS_VERIFY_NOT_NULL(consumerUuid, NS_ERROR);
NSSetConsumerId(consumerUuid);
- NS_LOG_V(DEBUG, "Consumer ID : %s", *NSGetConsumerId());
+ NS_LOG_V(INFO_PRIVATE, "Consumer ID : %s", *NSGetConsumerId());
NS_LOG(DEBUG, "listener init");
NSResult ret = NSConsumerListenerInit();
return NS_FAIL;
}
- NS_LOG_V(DEBUG, "Remote server address: %s", serverAddress);
+ NS_LOG_V(INFO_PRIVATE, "Remote server address: %s", serverAddress);
NS_LOG(DEBUG, "Request to publish resource");
NSPushQueue(DISCOVERY_SCHEDULER, TASK_PUBLISH_RESOURCE, serverAddress);
#else
(void) serverAddress;
#endif
- NS_LOG_V(DEBUG, "Not logged in remote server: %s", serverAddress);
+ NS_LOG_V(INFO_PRIVATE, "Not logged in remote server: %s", serverAddress);
return NS_FAIL;
}
return NS_FAIL;
}
- NS_LOG_V(DEBUG, "Remote server address: %s", serverAddress);
+ NS_LOG_V(INFO_PRIVATE, "Remote server address: %s", serverAddress);
NS_LOG(DEBUG, "Delete remote server info");
NSDeleteRemoteServerAddress(serverAddress);
#else
(void) serverAddress;
#endif
- NS_LOG_V(DEBUG, "Not logged in remote server : %s", serverAddress);
+ NS_LOG_V(INFO_PRIVATE, "Not logged in remote server : %s", serverAddress);
return NS_FAIL;
}
else if (OC_REST_POST == entityHandlerRequest->method)\r
{\r
// Receive interesting topic list from consumers\r
- // Send topic notice message(id = TOPIC) to the consumer \r
+ // Send topic notice message(id = TOPIC) to the consumer\r
// which requests to post.\r
NS_LOG(DEBUG, "NSEntityHandlerTopicCb - OC_REST_POST");\r
// Accepter is provider. our service is not support sendtopiclist from OC_REST_POST\r
NS_VERIFY_NOT_NULL(clientResponse->payload, OC_STACK_KEEP_TRANSACTION);\r
\r
NS_LOG(DEBUG, "income observe response of MQ notification");\r
- NS_LOG_V(DEBUG, "MQ OBS response income : %s:%d",\r
+ NS_LOG_V(INFO_PRIVATE, "MQ OBS response income : %s:%d",\r
clientResponse->devAddr.addr, clientResponse->devAddr.port);\r
NS_LOG_V(DEBUG, "MQ OBS response result : %d",\r
clientResponse->result);\r
{\r
char * pId = NULL;\r
getResult = OCRepPayloadGetPropString(payload, NS_ATTRIBUTE_PROVIDER_ID, &pId);\r
- NS_LOG_V (DEBUG, "provider id: %s", pId);\r
+ NS_LOG_V (INFO_PRIVATE, "provider id: %s", pId);\r
\r
if (getResult && strcmp(pId, NSGetProviderInfo()->providerId) == 0)\r
{\r
NS_VERIFY_NOT_NULL(clientResponse->payload, OC_STACK_KEEP_TRANSACTION);\r
\r
NS_LOG(DEBUG, "income get response of MQ broker");\r
- NS_LOG_V(DEBUG, "MQ GET response income : %s:%d",\r
+ NS_LOG_V(INFO_PRIVATE, "MQ GET response income : %s:%d",\r
clientResponse->devAddr.addr, clientResponse->devAddr.port);\r
NS_LOG_V(DEBUG, "MQ GET response result : %d",\r
clientResponse->result);\r
\r
if (info->adapter == CA_ADAPTER_TCP)\r
{\r
- NS_LOG_V(DEBUG, "TCP Connected remote address: %s:%d", info->addr, info->port);\r
+ NS_LOG_V(INFO_PRIVATE, "TCP Connected remote address: %s:%d", info->addr, info->port);\r
}\r
}\r
else\r
\r
if (info->adapter == CA_ADAPTER_TCP)\r
{\r
- NS_LOG_V(DEBUG, "TCP Disconnected remote address: %s:%d", info->addr, info->port);\r
+ NS_LOG_V(INFO_PRIVATE, "TCP Disconnected remote address: %s:%d", info->addr, info->port);\r
}\r
}\r
\r
NSCacheElement * next = NULL;\r
NSCacheType type = list->cacheType;\r
\r
- NS_LOG_V(DEBUG, "Find ID - %s", findId);\r
+ NS_LOG_V(INFO_PRIVATE, "Find ID - %s", findId);\r
\r
while (iter)\r
{\r
{\r
NS_LOG(DEBUG, "Update Data - IN");\r
\r
- NS_LOG_V(DEBUG, "currData_ID = %s", itData->id);\r
+ NS_LOG_V(INFO_PRIVATE, "currData_ID = %s", itData->id);\r
NS_LOG_V(DEBUG, "currData_MsgObID = %d", itData->messageObId);\r
NS_LOG_V(DEBUG, "currData_SyncObID = %d", itData->syncObId);\r
NS_LOG_V(DEBUG, "currData_Cloud_MsgObID = %d", itData->remote_messageObId);\r
{\r
NS_LOG(DEBUG, "Update Data - IN");\r
\r
- NS_LOG_V(DEBUG, "currData_ID = %s", itData->id);\r
+ NS_LOG_V(INFO_PRIVATE, "currData_ID = %s", itData->id);\r
NS_LOG_V(DEBUG, "currData_MsgObID = %d", itData->messageObId);\r
NS_LOG_V(DEBUG, "currData_SyncObID = %d", itData->syncObId);\r
NS_LOG_V(DEBUG, "currData_Cloud_MsgObID = %d", itData->remote_messageObId);\r
NS_LOG_V(DEBUG, "currData_Cloud_SyncObID = %d", itData->remote_syncObId);\r
NS_LOG_V(DEBUG, "currData_IsWhite = %d", itData->isWhite);\r
\r
- NS_LOG_V(DEBUG, "subData_ID = %s", subData->id);\r
+ NS_LOG_V(INFO_PRIVATE, "subData_ID = %s", subData->id);\r
NS_LOG_V(DEBUG, "subData_MsgObID = %d", subData->messageObId);\r
NS_LOG_V(DEBUG, "subData_SyncObID = %d", subData->syncObId);\r
NS_LOG_V(DEBUG, "subData_Cloud_MsgObID = %d", subData->remote_messageObId);\r
return false;\r
}\r
\r
- NS_LOG_V(DEBUG, "Data(compData) = [%s]", id);\r
+ NS_LOG_V(INFO_PRIVATE, "Data(compData) = [%s]", id);\r
\r
if (type == NS_PROVIDER_CACHE_SUBSCRIBER)\r
{\r
NSCacheSubData * subData = (NSCacheSubData *) data;\r
\r
- NS_LOG_V(DEBUG, "Data(subData) = [%s]", subData->id);\r
+ NS_LOG_V(INFO_PRIVATE, "Data(subData) = [%s]", subData->id);\r
\r
if (strcmp(subData->id, id) == 0)\r
{\r
{\r
NSCacheSubData * subData = (NSCacheSubData *) data;\r
\r
- NS_LOG_V(DEBUG, "Data(subData) = [%s]", subData->id);\r
+ NS_LOG_V(INFO_PRIVATE, "Data(subData) = [%s]", subData->id);\r
\r
OCObservationId currID = *id;\r
\r
{\r
NSCacheTopicSubData * topicData = (NSCacheTopicSubData *) data;\r
\r
- NS_LOG_V(DEBUG, "Data(topicData) = [%s]", topicData->id);\r
+ NS_LOG_V(INFO_PRIVATE, "Data(topicData) = [%s]", topicData->id);\r
\r
if (strcmp(topicData->id, id) == 0)\r
{\r
\r
if (curr && strcmp(curr->id, consumerId) == 0)\r
{\r
- NS_LOG_V(DEBUG, "curr->id = %s", curr->id);\r
+ NS_LOG_V(INFO_PRIVATE, "curr->id = %s", curr->id);\r
NS_LOG_V(DEBUG, "curr->topicName = %s", curr->topicName);\r
NSTopicLL * topicIter = topics;\r
\r
}\r
\r
NSCacheTopicSubData * curr = (NSCacheTopicSubData *) del->data;\r
- NS_LOG_V(DEBUG, "compareid = %s", cId);\r
+ NS_LOG_V(INFO_PRIVATE, "compareid = %s", cId);\r
NS_LOG_V(DEBUG, "comparetopicName = %s", topicName);\r
- NS_LOG_V(DEBUG, "curr->id = %s", curr->id);\r
+ NS_LOG_V(INFO_PRIVATE, "curr->id = %s", curr->id);\r
NS_LOG_V(DEBUG, "curr->topicName = %s", curr->topicName);\r
\r
if ( (strncmp(curr->id, cId, NS_UUID_STRING_SIZE) == 0) &&\r
while (it)
{
NSCacheSubData * subData = (NSCacheSubData *) it->data;
- NS_LOG_V(DEBUG, "message subData->id = %s", subData->id);
+ NS_LOG_V(INFO_PRIVATE, "message subData->id = %s", subData->id);
NS_LOG_V(DEBUG, "subData->messageId = %d", subData->messageObId);
NS_LOG_V(DEBUG, "subData->cloud_messageId = %d", subData->remote_messageObId);
NS_LOG_V(DEBUG, "subData->syncId = %d", subData->syncObId);
while (it)
{
NSCacheSubData * subData = (NSCacheSubData *) it->data;
- NS_LOG_V(DEBUG, "sync subData->id = %s", subData->id);
+ NS_LOG_V(INFO_PRIVATE, "sync subData->id = %s", subData->id);
NS_LOG_V(DEBUG, "subData->messageId = %d", subData->messageObId);
NS_LOG_V(DEBUG, "subData->cloud_messageId = %d", subData->remote_messageObId);
NS_LOG_V(DEBUG, "subData->syncId = %d", subData->syncObId);
if (ctx != (void *)DEFAULT_CONTEXT_VALUE)
{
NS_LOG(DEBUG, "Invalid Publish callback received");
- }
+ }
NS_LOG_V(DEBUG, "Publish resource response received code: %d", clientResponse->result);
{
NS_LOG(DEBUG, "NSPublishResourceToCloud - IN");
- NS_LOG_V(DEBUG, "Remote Server Address: %s", serverAddress);
+ NS_LOG_V(INFO_PRIVATE, "Remote Server Address: %s", serverAddress);
OCCallbackData cbData;
cbData.cb = NSHandlePublishCb;
return NS_ERROR;\r
}\r
\r
- NS_LOG_V(DEBUG, "NS Provider ID: %s", NSGetProviderInfo()->providerId);\r
+ NS_LOG_V(INFO_PRIVATE, "NS Provider ID: %s", NSGetProviderInfo()->providerId);\r
\r
char * copyReq = OICStrdup(entityHandlerRequest->query);\r
char * reqInterface = NSGetValueFromQuery(copyReq, NS_QUERY_INTERFACE);\r
return;\r
}\r
\r
- NS_LOG_V(DEBUG, "consumerId = %s", id);\r
+ NS_LOG_V(INFO_PRIVATE, "consumerId = %s", id);\r
if (resourceType == NS_RESOURCE_MESSAGE)\r
{\r
NS_LOG(DEBUG, "resourceType == NS_RESOURCE_MESSAGE");\r
NS_VERIFY_NOT_NULL_V(subData);\r
\r
OICStrcpy(subData->id, UUID_STRING_SIZE, id);\r
- NS_LOG_V(DEBUG, "SubList ID = [%s]", subData->id);\r
+ NS_LOG_V(INFO_PRIVATE, "SubList ID = [%s]", subData->id);\r
\r
- NS_LOG_V(DEBUG, "Consumer Address: %s", entityHandlerRequest->devAddr.addr);\r
+ NS_LOG_V(INFO_PRIVATE, "Consumer Address: %s", entityHandlerRequest->devAddr.addr);\r
\r
subData->remote_messageObId = subData->messageObId = 0;\r
\r
NS_VERIFY_NOT_NULL_V(subData);\r
\r
OICStrcpy(subData->id, UUID_STRING_SIZE, id);\r
- NS_LOG_V(DEBUG, "SubList ID = [%s]", subData->id);\r
+ NS_LOG_V(INFO_PRIVATE, "SubList ID = [%s]", subData->id);\r
\r
- NS_LOG_V(DEBUG, "Consumer Address: %s", entityHandlerRequest->devAddr.addr);\r
+ NS_LOG_V(INFO_PRIVATE, "Consumer Address: %s", entityHandlerRequest->devAddr.addr);\r
\r
subData->remote_syncObId = subData->syncObId = 0;\r
bool isRemoteServer = false;\r
\r
void NSDeleteRemoteServerAddress(char *serverAddress)\r
{\r
- NS_LOG_V(DEBUG, "Delete cloud address: %s", serverAddress);\r
+ NS_LOG_V(INFO_PRIVATE, "Delete cloud address: %s", serverAddress);\r
\r
memset(NSRemoteServerAddress, 0, MAX_SERVER_ADDRESS);\r
}\r
\r
bool NSIsRemoteServerAddress(char *serverAddress)\r
{\r
- NS_LOG_V(DEBUG, "Check server address: %s", serverAddress);\r
+ NS_LOG_V(INFO_PRIVATE, "Check server address: %s", serverAddress);\r
\r
if (serverAddress != NULL)\r
{\r
\r
providerInfo = (NSProviderInfo *) OICMalloc(sizeof(NSProviderInfo));\r
const char * generatedUuid = (char *)OCGetServerInstanceIDString();\r
- NS_LOG_V(DEBUG, "Generate Provider ID: %s", generatedUuid);\r
+ NS_LOG_V(INFO_PRIVATE, "Generate Provider ID: %s", generatedUuid);\r
OICStrcpy(providerInfo->providerId, UUID_STRING_SIZE, generatedUuid);\r
\r
providerInfo->providerName = NULL;\r
\r
NSProviderInfo * NSGetProviderInfo()\r
{\r
- NS_LOG_V(DEBUG, "ProviderInfo: %s", providerInfo->providerId);\r
+ NS_LOG_V(INFO_PRIVATE, "ProviderInfo: %s", providerInfo->providerId);\r
\r
return providerInfo;\r
}\r
return NS_FAIL;
}
- NS_LOG_V(DEBUG, "TOPIC consumer ID = %s", consumerId);
+ NS_LOG_V(INFO_PRIVATE, "TOPIC consumer ID = %s", consumerId);
consumerTopicList->cacheType = NS_PROVIDER_CACHE_CONSUMER_TOPIC_CID;