resultsdb: Fix logging setup
Newer ResultsDB releases use LOGGING dict to set up logging. The old options were removed completely since these were defaults for a long time anyway.
This commit is contained in:
parent
c1d7d8df6c
commit
ebd579858d
1 changed files with 27 additions and 4 deletions
|
@ -16,10 +16,33 @@ stringData:
|
||||||
{% else %}
|
{% else %}
|
||||||
SQLALCHEMY_DATABASE_URI='postgresql+psycopg2://{{ prod_resultsdb_db_user }}:{{ prod_resultsdb_db_password }}@{{ prod_resultsdb_db_host }}:{{ prod_resultsdb_db_port }}/{{ prod_resultsdb_db_name }}'
|
SQLALCHEMY_DATABASE_URI='postgresql+psycopg2://{{ prod_resultsdb_db_user }}:{{ prod_resultsdb_db_password }}@{{ prod_resultsdb_db_host }}:{{ prod_resultsdb_db_port }}/{{ prod_resultsdb_db_name }}'
|
||||||
{% endif %}
|
{% endif %}
|
||||||
FILE_LOGGING = False
|
LOGGING = {
|
||||||
LOGFILE = '/var/log/resultsdb/resultsdb.log'
|
'version': 1,
|
||||||
SYSLOG_LOGGING = False
|
'disable_existing_loggers': False,
|
||||||
STREAM_LOGGING = True
|
'loggers': {
|
||||||
|
'resultsdb': {
|
||||||
|
'level': 'DEBUG',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
'handlers': {
|
||||||
|
'console': {
|
||||||
|
'formatter': 'bare',
|
||||||
|
'class': 'logging.StreamHandler',
|
||||||
|
'stream': 'ext://sys.stdout',
|
||||||
|
'level': 'INFO',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
'formatters': {
|
||||||
|
'bare': {
|
||||||
|
'format': '[%(asctime)s] [%(process)d] [%(levelname)s] %(name)s: %(message)s',
|
||||||
|
'datefmt': '%Y-%m-%d %H:%M:%S',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
'root': {
|
||||||
|
'level': 'WARNING',
|
||||||
|
'handlers': ['console'],
|
||||||
|
},
|
||||||
|
}
|
||||||
RUN_HOST= '0.0.0.0'
|
RUN_HOST= '0.0.0.0'
|
||||||
RUN_PORT = 5001
|
RUN_PORT = 5001
|
||||||
{% if deployment_type is defined and deployment_type in ['local', 'dev']%}
|
{% if deployment_type is defined and deployment_type in ['local', 'dev']%}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue