mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-12 21:59:19 +02:00
update logging
This commit is contained in:
parent
75a2a242ea
commit
4b341336b4
@ -48,7 +48,7 @@ def _read_macaroon(lnd_macaroon_file):
|
||||
def check_locked(password_file, lnd_cert_file, lnd_macaroon_file, host="localhost", port="8080", verbose=False):
|
||||
# check locked
|
||||
if verbose:
|
||||
print("Checking for lock with the following data:")
|
||||
print("Checking for lock")
|
||||
|
||||
passwd_b64 = _read_pwd(password_file)
|
||||
macaroon_hex_dump = _read_macaroon(lnd_macaroon_file)
|
||||
@ -76,7 +76,7 @@ def check_locked(password_file, lnd_cert_file, lnd_macaroon_file, host="localhos
|
||||
|
||||
def unlock(password_file, lnd_cert_file, lnd_macaroon_file, host="localhost", port="8080", verbose=False):
|
||||
if verbose:
|
||||
print("Trying to unlock with the following data:")
|
||||
print("Trying to unlock")
|
||||
|
||||
passwd_b64 = _read_pwd(password_file)
|
||||
macaroon_hex_dump = _read_macaroon(lnd_macaroon_file)
|
||||
@ -146,11 +146,11 @@ def main():
|
||||
|
||||
if check_locked(password_file, lnd_cert_file, lnd_macaroon_file,
|
||||
host=options.host, port=options.port, verbose=options.verbose):
|
||||
print("\033[93m{}\033[00m".format("Locked"))
|
||||
else:
|
||||
if options.verbose:
|
||||
print("\033[92m{}\033[00m".format("Not Locked"))
|
||||
sys.exit(1)
|
||||
print("\033[93m{}\033[00m".format("Locked"))
|
||||
else:
|
||||
print("\033[92m{}\033[00m".format("Not Locked"))
|
||||
sys.exit(1)
|
||||
|
||||
if unlock(password_file, lnd_cert_file, lnd_macaroon_file,
|
||||
host=options.host, port=options.port, verbose=options.verbose):
|
||||
|
Loading…
x
Reference in New Issue
Block a user