From 168ff3318edc9aece5305b39f9ea47b4f708402a Mon Sep 17 00:00:00 2001
From: ThanKarab <tkarabatsis@hotmail.com>
Date: Fri, 23 Oct 2020 14:15:59 +0300
Subject: [PATCH] Log level default values and env variables changed.

---
 docker/README.md               |  4 ++--
 docker/config/application.tmpl | 10 ++--------
 2 files changed, 4 insertions(+), 10 deletions(-)

diff --git a/docker/README.md b/docker/README.md
index faedc351e..3f3437aec 100644
--- a/docker/README.md
+++ b/docker/README.md
@@ -46,8 +46,8 @@ To use this image, you need a running instance of PostgreSQL and to configure th
 
 ### LOGGING
 
-* LOGGING_LEVEL_WEB: log level for the web layer of the application. Default to "WARN".
-* LOGGING_LEVEL_HIBERNATE: log level for the Hibernate layer of the application. Default to "WARN".
+* LOG_LEVEL: log level for the developer added logs. Default is "ERROR".
+* LOG_LEVEL_FRAMEWORK: log level for all the framework logs. Default is "ERROR".
 
 
 ### ENDPOINTS
diff --git a/docker/config/application.tmpl b/docker/config/application.tmpl
index 8d76148db..13fc65779 100644
--- a/docker/config/application.tmpl
+++ b/docker/config/application.tmpl
@@ -50,15 +50,9 @@ frontend:
   
 logging:
   level:
-    root: {{ default .Env.LOG_LEVEL "ERROR" }}
-    org:
-      springframework:
-        security: ERROR
-        web: {{ default .Env.LOGGING_LEVEL_WEB "ERROR" }}
-        web.servlet.handler.BeanNameUrlHandlerMapping: ERROR
-      hibernate: {{ default .Env.LOGGING_LEVEL_HIBERNATE "ERROR" }}
+    root: {{ default .Env.LOG_LEVEL_FRAMEWORK "ERROR" }}
     eu:
-      hbp: {{ default .Env.LOGGING_LEVEL_MIP "INFO" }}
+      hbp: {{ default .Env.LOG_LEVEL "INFO" }}
 
 # EMBEDDED SERVER CONFIGURATION
 server:
-- 
GitLab