[IOT-1850] Fix logging on Notification service.
authorKIM JungYong <jyong2.kim@samsung.com>
Fri, 24 Feb 2017 05:10:04 +0000 (14:10 +0900)
committerUze Choi <uzchoi@samsung.com>
Mon, 27 Feb 2017 05:32:47 +0000 (05:32 +0000)
Unsafe location of log was moved to safety location.

Bugs: https://jira.iotivity.org/browse/IOT-1850
Change-Id: I5ba9537f10546e1eff6968ec2dcdd95ec04abf34
Signed-off-by: KIM JungYong <jyong2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/17493
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
service/notification/src/consumer/NSConsumerDiscovery.c

index 4d4f072..7124bff 100644 (file)
@@ -112,9 +112,9 @@ OCStackApplicationResult NSProviderDiscoverListener(
     while (discoveryPayload)
     {
         OCResourcePayload * resource = discoveryPayload->resources;
-        NS_LOG_V(DEBUG, "Discovered resource uri : %s", resource->uri);
         while (resource)
         {
+            NS_LOG_V(DEBUG, "Discovered resource uri : %s", resource->uri);
             NS_VERIFY_NOT_NULL(resource->uri, OC_STACK_KEEP_TRANSACTION);
             if (strstr(resource->uri, NS_RESOURCE_URI))
             {