Move PRH loggers config to CBS; 89/89989/3
authorgrabinsk <maciej.grabinski@nokia.com>
Mon, 17 Jun 2019 09:02:01 +0000 (11:02 +0200)
committerMaciej Grabinski <maciej.grabinski@nokia.com>
Mon, 17 Jun 2019 11:26:29 +0000 (11:26 +0000)
Update required CBS connectivity attrs passed via env;

Change-Id: Ib70850054499f0ee852ad4b9f0e0ae963b35e6f4
Issue-ID: DCAEGEN2-1544
Signed-off-by: grabinsk <maciej.grabinski@nokia.com>
tests/dcaegen2/prh-testcases/resources/.env
tests/dcaegen2/prh-testcases/resources/docker-compose.yml

index a558a2e..b1de55a 100644 (file)
@@ -1,5 +1,4 @@
-LOG_LEVEL=INFO
-PRH_LOG_LEVEL=TRACE
 HOSTNAME=dcae-prh
 CONSUL_HOST=consul
 CONFIG_BINDING_SERVICE=cbs
+CONFIG_BINDING_SERVICE_SERVICE_PORT=10000
\ No newline at end of file
index aba658b..f8472a5 100644 (file)
@@ -8,11 +8,10 @@ services:
     volumes:
       - ./simulator/certs:/tmp/certs
     environment:
-      - LOG_LEVEL
-      - PRH_LOG_LEVEL
-      - HOSTNAME
-      - CONSUL_HOST
+      - HOSTNAME=dcae-prh
+      - CONSUL_HOST                # not in use, but still required by SDK - should be removed later on
       - CONFIG_BINDING_SERVICE
+      - CONFIG_BINDING_SERVICE_SERVICE_PORT
     container_name: prh
     depends_on:
       cbs:
@@ -55,6 +54,8 @@ services:
     image: consul:1.0.6
     restart: on-failure
     command: ["kv", "put", "-http-addr=http://consul:8500", "dcae-prh", '{
+                                              "logging.level.org.onap.dcaegen2.services.prh": "debug",
+                                              "logging.level.org.onap.dcaegen2.services.sdk": "debug",
                                               "dmaap.dmaapConsumerConfiguration.dmaapUserName":"admin",
                                               "dmaap.dmaapConsumerConfiguration.dmaapUserPassword":"admin",
                                               "dmaap.dmaapConsumerConfiguration.dmaapContentType": "application/json",