summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthieuGeerebaert <matthieu.geerebaert@orange.com>2019-03-06 11:44:52 +0100
committerMatthieuGeerebaert <matthieu.geerebaert@orange.com>2019-03-06 12:19:31 +0100
commitea0c457917a9c6a2f53c0896a69ca132aa6ca9e8 (patch)
tree752cb310ea7a346ab75b0cbedcd09b41a26c0ac3 /src
parentc28c83fbe81f11ba5b636da29f969b72d58df9b5 (diff)
Reduce log output
At startup and testing phase Disable spring logging Change-Id: Ia357e8528a57204be34be94e45a745380de49653 Issue-ID: EXTAPI-207 Signed-off-by: MatthieuGeerebaert <matthieu.geerebaert@orange.com>
Diffstat (limited to 'src')
-rw-r--r--src/main/resources/application-test.properties16
-rw-r--r--src/main/resources/application.properties10
-rw-r--r--src/test/resources/logback-test.xml22
3 files changed, 38 insertions, 10 deletions
diff --git a/src/main/resources/application-test.properties b/src/main/resources/application-test.properties
index ca04a05..028040d 100644
--- a/src/main/resources/application-test.properties
+++ b/src/main/resources/application-test.properties
@@ -17,11 +17,13 @@
nbi.version = v3
# SERVER
-server.servlet.context-path = /nbi/api/${nbi.version}
+server.servlet.context-path = /nbi/api/${nbi.version}
server.port = 8080
# LOGGING
-logging.level. = ERROR
+logging.level.org.springframework = OFF
+logging.level.root = OFF
+spring.main.banner-mode = off
# ONAP
onap.lcpCloudRegionId = RegionOne
@@ -61,11 +63,11 @@ so.owning.entity.name = OE-generic
so.project.name = Project-generic
# DMAAP
-dmaap.host = http://127.0.0.1:8091
-dmaap.topic = AAI-EVENT
-dmaap.consumergroup = NBICG1
-dmaap.consumerid = NBIC1
-dmaap.timeout = 2000
+dmaap.host = http://127.0.0.1:8091
+dmaap.topic = AAI-EVENT
+dmaap.consumergroup = NBICG1
+dmaap.consumerid = NBIC1
+dmaap.timeout = 2000
# MSB
msb.enabled = false
diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties
index 70d640c..741682e 100644
--- a/src/main/resources/application.properties
+++ b/src/main/resources/application.properties
@@ -27,7 +27,11 @@ server.servlet.context-path = /nbi/api/${nbi.version}
server.port = 8080
# LOGGING
-logging.level. = INFO
+logging.level. = WARN
+logging.level.org.springframework = OFF
+logging.level.org.onap = INFO
+logging.level.root = WARN
+spring.main.banner-mode = off
# ONAP
onap.lcpCloudRegionId = RegionOne
@@ -44,8 +48,8 @@ serviceOrder.schedule = 5000
serviceOrder.initial = 1
executionTask.schedule = 2000
executionTask.initial = 1
-dmaapCheck.schedule = 10000
-dmaapCheck.initial = 1
+dmaapCheck.schedule = 10000
+dmaapCheck.initial = 1
# SDC
sdc.host = http://10.0.3.1:8080
diff --git a/src/test/resources/logback-test.xml b/src/test/resources/logback-test.xml
new file mode 100644
index 0000000..342220f
--- /dev/null
+++ b/src/test/resources/logback-test.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Copyright (c) 2019 Orange
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+<configuration>
+ <include resource="org/springframework/boot/logging/logback/base.xml"/>
+ <logger level="OFF" name="org.springframework"/>
+</configuration> \ No newline at end of file