mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
uses get_default_components for log components
This commit is contained in:
parent
5efef322a6
commit
1914c144cd
1 changed files with 7 additions and 7 deletions
14
start.py
14
start.py
|
|
@ -1109,15 +1109,15 @@ def get_info(use_staging=None) -> list:
|
|||
# Reinitialize
|
||||
PypeLogger.initialize()
|
||||
|
||||
log_components = PypeLogger.log_mongo_url_components
|
||||
if log_components["host"]:
|
||||
inf.append(("Logging to MongoDB", log_components["host"]))
|
||||
inf.append((" - port", log_components["port"] or "<N/A>"))
|
||||
mongo_components = get_default_components()
|
||||
if mongo_components["host"]:
|
||||
inf.append(("Logging to MongoDB", mongo_components["host"]))
|
||||
inf.append((" - port", mongo_components["port"] or "<N/A>"))
|
||||
inf.append((" - database", PypeLogger.log_database_name))
|
||||
inf.append((" - collection", PypeLogger.log_collection_name))
|
||||
inf.append((" - user", log_components["username"] or "<N/A>"))
|
||||
if log_components["auth_db"]:
|
||||
inf.append((" - auth source", log_components["auth_db"]))
|
||||
inf.append((" - user", mongo_components["username"] or "<N/A>"))
|
||||
if mongo_components["auth_db"]:
|
||||
inf.append((" - auth source", mongo_components["auth_db"]))
|
||||
|
||||
maximum = max(len(i[0]) for i in inf)
|
||||
formatted = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue