correction des noms des fichiers de logs
This commit is contained in:
@@ -20,6 +20,8 @@ class BaseConfig(object):
|
||||
|
||||
LOG_FOLDER = os.path.join(os.getcwd(), 'log')
|
||||
APP_NAME = "KineIntercom"
|
||||
PROCESS_LOGNAME = "Intercom.log"
|
||||
CONF_LOGNAME = "configurateur.log"
|
||||
|
||||
SECRET_KEY = "d]omg;<*|uHfs}ogN=dk_$YW"
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@ def get_conf_logs():
|
||||
current_user = get_jwt_identity()
|
||||
|
||||
lines = []
|
||||
logfile = os.path.join(current_app.config['LOG_FOLDER'], current_app.config['PROJECT'] + '.log')
|
||||
logfile = os.path.join(current_app.config['LOG_FOLDER'], current_app.config['CONF_LOGNAME'])
|
||||
try:
|
||||
with open(logfile) as f:
|
||||
current_app.logger.debug("conf log file: {}".format(logfile))
|
||||
@@ -94,7 +94,7 @@ def get_app_logs():
|
||||
current_user = get_jwt_identity()
|
||||
|
||||
lines = []
|
||||
logfile = os.path.join(current_app.config['LOG_FOLDER'], current_app.config['APP_NAME'] + '.log')
|
||||
logfile = os.path.join(current_app.config['LOG_FOLDER'], current_app.config['PROCESS_LOGNAME'])
|
||||
try:
|
||||
with open(logfile) as f:
|
||||
current_app.logger.debug("app log file: {}".format(logfile))
|
||||
|
||||
Reference in New Issue
Block a user