loguru warnings (#751)
This commit is contained in:
parent
c8ab2859fd
commit
f4580955b9
|
@ -231,7 +231,7 @@ async def redeem_lnurl_withdraw(
|
|||
conn=conn,
|
||||
)
|
||||
except:
|
||||
logger.warn(
|
||||
logger.warning(
|
||||
f"failed to create invoice on redeem_lnurl_withdraw from {lnurl}. params: {res}"
|
||||
)
|
||||
return None
|
||||
|
|
|
@ -395,7 +395,7 @@ async def api_payment(payment_hash, X_Api_Key: Optional[str] = Header(None)):
|
|||
wallet = None
|
||||
try:
|
||||
if X_Api_Key.extra:
|
||||
logger.warn("No key")
|
||||
logger.warning("No key")
|
||||
except:
|
||||
wallet = await get_wallet_for_key(X_Api_Key)
|
||||
payment = await get_standalone_payment(
|
||||
|
|
|
@ -281,7 +281,7 @@ async def btc_price(currency: str) -> float:
|
|||
if not rates:
|
||||
return 9999999999
|
||||
elif len(rates) == 1:
|
||||
logger.warn("Could only fetch one Bitcoin price.")
|
||||
logger.warning("Could only fetch one Bitcoin price.")
|
||||
|
||||
return sum([rate for rate in rates]) / len(rates)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user