remove annoying warnings and unnecessary prints.

show a summary of some settings on startup when running __main__.py
This commit is contained in:
fiatjaf
2020-10-06 12:59:08 -03:00
parent c5352c0309
commit 9a16dfa960
4 changed files with 20 additions and 9 deletions
+12
View File
@@ -1,9 +1,21 @@
from .app import create_app
from .commands import migrate_databases, transpile_scss, bundle_vendored
from .settings import LNBITS_SITE_TITLE, SERVICE_FEE, DEBUG, LNBITS_DATA_FOLDER, WALLET
migrate_databases()
transpile_scss()
bundle_vendored()
app = create_app()
print(
f"""Starting LNbits with
- site title: {LNBITS_SITE_TITLE}
- debug: {DEBUG}
- data folder: {LNBITS_DATA_FOLDER}
- funding source: {WALLET.__class__.__name__}
- service fee: {SERVICE_FEE}
"""
)
app.run(host=app.config["HOST"], port=app.config["PORT"])