From f429bb0b4df806c2ef78e2af77073c71312f18ba Mon Sep 17 00:00:00 2001
From: "Riabokon Stanislav(EPAM)" <stanislav_riabokon@epam.com>
Date: Thu, 25 Mar 2021 14:05:52 +0000
Subject: [PATCH] Changed log level.

---
 .../src/main/resources/application-dev.properties           | 1 -
 .../src/main/resources/application-local.properties         | 1 -
 .../src/main/resources/application.properties               | 1 +
 provider/notification-gcp/src/main/resources/logback.xml    | 6 ++++--
 4 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/provider/notification-gcp/src/main/resources/application-dev.properties b/provider/notification-gcp/src/main/resources/application-dev.properties
index 345de0681..00e1abb14 100644
--- a/provider/notification-gcp/src/main/resources/application-dev.properties
+++ b/provider/notification-gcp/src/main/resources/application-dev.properties
@@ -14,7 +14,6 @@
 #   limitations under the License.
 #
 
-logging.level.org.springframework.web=DEBUG
 spring.profiles.active=dev
 app.entitlements=https://entitlements-dot-opendes.appspot.com/entitlements/v1
 app.register=https://os-register-dot-opendes.appspot.com/api/register/v1
diff --git a/provider/notification-gcp/src/main/resources/application-local.properties b/provider/notification-gcp/src/main/resources/application-local.properties
index f75b15e60..58c982df5 100644
--- a/provider/notification-gcp/src/main/resources/application-local.properties
+++ b/provider/notification-gcp/src/main/resources/application-local.properties
@@ -14,7 +14,6 @@
 #   limitations under the License.
 #
 
-logging.level.org.springframework.web=DEBUG
 spring.profiles.active=local
 app.entitlements=https://entitlements-dot-opendes.appspot.com/entitlements/v1
 app.register=https://os-register-dot-opendes.appspot.com/api/register/v1
diff --git a/provider/notification-gcp/src/main/resources/application.properties b/provider/notification-gcp/src/main/resources/application.properties
index 21f2a3326..fa6abe7fa 100644
--- a/provider/notification-gcp/src/main/resources/application.properties
+++ b/provider/notification-gcp/src/main/resources/application.properties
@@ -15,6 +15,7 @@
 #
 
 LOG_PREFIX=notification
+logging.level.org.springframework.web=${LOG_LEVEL:DEBUG}
 server.servlet.contextPath=/
 app.expireTime=300
 app.maxCacheSize=10
diff --git a/provider/notification-gcp/src/main/resources/logback.xml b/provider/notification-gcp/src/main/resources/logback.xml
index e6bb61f96..8d6d9b140 100644
--- a/provider/notification-gcp/src/main/resources/logback.xml
+++ b/provider/notification-gcp/src/main/resources/logback.xml
@@ -1,6 +1,8 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <configuration>
   <include resource="org/springframework/boot/logging/logback/defaults.xml"/>
+  <property resource="application.properties" />
+  <logger name="org.opengroup.osdu" level="${LOG_LEVEL}"/>
   <springProfile name="local">
     <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
       <encoder>
@@ -8,7 +10,7 @@
         <charset>utf8</charset>
       </encoder>
     </appender>
-    <root level="DEBUG">
+    <root level="info">
       <appender-ref ref="CONSOLE"/>
     </root>
   </springProfile>
@@ -28,7 +30,7 @@
       </encoder>
     </appender>
 
-    <root level="debug">
+    <root level="info">
       <appender-ref ref="stdout"/>
     </root>
   </springProfile>
-- 
GitLab