File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed
Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,9 @@ def get_cache_setting(self):
8181 def get_language_code (self ):
8282 return self .get ('LANGUAGE_CODE' , 'zh-CN' )
8383
84+ def get_log_level (self ):
85+ return self .get ('LOG_LEVEL' , 'DEBUG' )
86+
8487 def __init__ (self , * args ):
8588 super ().__init__ (* args )
8689
Original file line number Diff line number Diff line change 77MAX_KB_LOG_FILE = os .path .join (LOG_DIR , 'maxkb.log' )
88DRF_EXCEPTION_LOG_FILE = os .path .join (LOG_DIR , 'drf_exception.log' )
99UNEXPECTED_EXCEPTION_LOG_FILE = os .path .join (LOG_DIR , 'unexpected_exception.log' )
10- LOG_LEVEL = "DEBUG"
10+ LOG_LEVEL = CONFIG . get_log_level ()
1111
1212LOGGING = {
1313 'version' : 1 ,
Original file line number Diff line number Diff line change @@ -31,4 +31,5 @@ ENV PGDATA=/opt/maxkb/data/postgresql/pgdata \
3131 POSTGRES_PASSWORD=Password123@postgres \
3232 POSTGRES_MAX_CONNECTIONS=1000 \
3333 REDIS_PASSWORD=Password123@redis \
34- LANG=en_US.UTF-8
34+ LANG=en_US.UTF-8 \
35+ MAXKB_LOG_LEVEL=INFO
You can’t perform that action at this time.
0 commit comments