Commits

Martin Krizek  committed 55bfa3c

Introduce SHOW_DB_URI config value

Differential Revision: https://phab.qadevel.cloud.fedoraproject.org/D143

  • Participants
  • Parent commits 042b24b

Comments (0)

Files changed (3)

File conf/settings.py.example

 LOGFILR = '/var/log/resultsdb/resultsdb.log'
 SYSLOG_LOGGING = False
 STREAM_LOGGING = True
+SHOW_DB_URI = False

File resultsdb/__init__.py

 
 setup_logging()
 
-app.logger.debug('using DBURI: %s' % app.config['SQLALCHEMY_DATABASE_URI'])
+if app.config['SHOW_DB_URI']:
+    app.logger.debug('using DBURI: %s' % app.config['SQLALCHEMY_DATABASE_URI'])
 
 
 # database

File resultsdb/config.py

 
     PRODUCTION = False
 
+    SHOW_DB_URI = False
+
 
 class ProductionConfig(Config):
     DEBUG = False