Compare commits

..
Author SHA1 Message Date
Shroominic 1e21dce735 change to warning log 2026-01-06 18:23:01 +01:00
Shroominic b70b94b9b4 feat: add admin password warning log 2026-01-03 22:12:23 +01:00
2 changed files with 8 additions and 6 deletions
+5
View File
@@ -62,6 +62,11 @@ async def lifespan(_: FastAPI) -> AsyncGenerator[None, None]:
async with create_session() as session:
s = await SettingsService.initialize(session)
if not s.admin_password:
logger.warning(
f"Admin password is not set. Visit {s.http_url or 'http://localhost:8000'}/admin to set the password."
)
# Apply app metadata from settings
try:
app.title = s.name
+3 -6
View File
@@ -305,6 +305,9 @@ async def fetch_all_balances(
async def periodic_payout() -> None:
if not settings.receive_ln_address:
logger.error("RECEIVE_LN_ADDRESS is not set, skipping payout")
return
while True:
await asyncio.sleep(60 * 15)
try:
@@ -325,12 +328,6 @@ async def periodic_payout() -> None:
available_balance = proofs_balance - user_balance
min_amount = 210 if unit == "sat" else 210000
if available_balance > min_amount:
if not settings.receive_ln_address:
logger.error(
"RECEIVE_LN_ADDRESS is not set, skipping payout"
)
continue
amount_received = await raw_send_to_lnurl(
wallet,
proofs,