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')
|
LOG_FOLDER = os.path.join(os.getcwd(), 'log')
|
||||||
APP_NAME = "KineIntercom"
|
APP_NAME = "KineIntercom"
|
||||||
|
PROCESS_LOGNAME = "Intercom.log"
|
||||||
|
CONF_LOGNAME = "configurateur.log"
|
||||||
|
|
||||||
SECRET_KEY = "d]omg;<*|uHfs}ogN=dk_$YW"
|
SECRET_KEY = "d]omg;<*|uHfs}ogN=dk_$YW"
|
||||||
|
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ def get_conf_logs():
|
|||||||
current_user = get_jwt_identity()
|
current_user = get_jwt_identity()
|
||||||
|
|
||||||
lines = []
|
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:
|
try:
|
||||||
with open(logfile) as f:
|
with open(logfile) as f:
|
||||||
current_app.logger.debug("conf log file: {}".format(logfile))
|
current_app.logger.debug("conf log file: {}".format(logfile))
|
||||||
@@ -94,7 +94,7 @@ def get_app_logs():
|
|||||||
current_user = get_jwt_identity()
|
current_user = get_jwt_identity()
|
||||||
|
|
||||||
lines = []
|
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:
|
try:
|
||||||
with open(logfile) as f:
|
with open(logfile) as f:
|
||||||
current_app.logger.debug("app log file: {}".format(logfile))
|
current_app.logger.debug("app log file: {}".format(logfile))
|
||||||
|
|||||||
Reference in New Issue
Block a user