mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Always print database config
This commit is contained in:
parent
83cd24961d
commit
5d141e3568
@ -376,9 +376,13 @@ if db_engine.lower() in ['sqlite3', 'postgresql', 'mysql']:
|
||||
db_config['ENGINE'] = db_engine
|
||||
|
||||
db_name = db_config['NAME']
|
||||
db_host = db_config.get('HOST', "''")
|
||||
|
||||
logger.info(f"Database ENGINE: '{db_engine}'")
|
||||
logger.info(f"Database NAME: '{db_name}'")
|
||||
print("InvenTree Database Configuration")
|
||||
print("================================")
|
||||
print(f"INVENTREE_DB_ENGINE: {db_engine}")
|
||||
print(f"INVENTREE_DB_NAME: {db_name}")
|
||||
print(f"INVENTREE_DB_HOST: {db_host}")
|
||||
|
||||
DATABASES['default'] = db_config
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user