mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-10-04 20:12:37 +02:00
text debug details
This commit is contained in:
@@ -350,6 +350,8 @@ def shopOrder(shopUrl, hostid, servicename, torTarget, duration, msatsFirst, msa
|
|||||||
if loopCount > 30:
|
if loopCount > 30:
|
||||||
raise BlitzError("timeout on getting invoice", order)
|
raise BlitzError("timeout on getting invoice", order)
|
||||||
|
|
||||||
|
raise BlitzError("test error",order)
|
||||||
|
|
||||||
# get data from now complete order
|
# get data from now complete order
|
||||||
paymentRequestStr = order['ln_invoices'][0]['payment_request']
|
paymentRequestStr = order['ln_invoices'][0]['payment_request']
|
||||||
bridge_id = order['item_details'][0]['product']['id']
|
bridge_id = order['item_details'][0]['product']['id']
|
||||||
@@ -650,7 +652,6 @@ More information on the service you can find under:
|
|||||||
try:
|
try:
|
||||||
|
|
||||||
os.system('clear')
|
os.system('clear')
|
||||||
raise BlitzError("test error",host)
|
|
||||||
subscription = shopOrder(shopurl, host['id'], blitzServiceName, torTarget, host['tor_bridge_duration'], host['tor_bridge_price_initial'],host['tor_bridge_price_extension'],description)
|
subscription = shopOrder(shopurl, host['id'], blitzServiceName, torTarget, host['tor_bridge_duration'], host['tor_bridge_price_initial'],host['tor_bridge_price_extension'],description)
|
||||||
|
|
||||||
except BlitzError as be:
|
except BlitzError as be:
|
||||||
@@ -683,12 +684,12 @@ Error: {0}
|
|||||||
os.system('clear')
|
os.system('clear')
|
||||||
print('###### ERROR DETAIL FOR DEBUG #######')
|
print('###### ERROR DETAIL FOR DEBUG #######')
|
||||||
print("")
|
print("")
|
||||||
|
print("Error Short:")
|
||||||
|
print(be.errorShort)
|
||||||
print('Shop:')
|
print('Shop:')
|
||||||
print(shopurl)
|
print(shopurl)
|
||||||
print('Bridge:')
|
print('Bridge:')
|
||||||
print(str(host))
|
print(str(host))
|
||||||
print("Error Short:")
|
|
||||||
print(be.errorShort)
|
|
||||||
print("Error Detail:")
|
print("Error Detail:")
|
||||||
print(be.errorLong)
|
print(be.errorLong)
|
||||||
print("")
|
print("")
|
||||||
|
Reference in New Issue
Block a user