Changed log format to JSON; fixed missing return value in get_potential_matches

This commit is contained in:
Salvatore Ingala
2019-10-08 16:32:09 +07:00
parent 1b229cb441
commit ed0cb4f632
11 changed files with 87 additions and 85 deletions

View File

@@ -1,7 +1,7 @@
from sys import argv
from getopt import getopt
from pisa import logging
from pisa import logging, M
from pisa.api import start_api
from pisa.tools import can_connect_to_bitcoind, in_correct_network
@@ -19,8 +19,8 @@ if __name__ == '__main__':
start_api()
else:
logging.error("[Pisad] bitcoind is running on a different network, check conf.py and bitcoin.conf. "
"Shutting down")
logging.error(M("[Pisad] bitcoind is running on a different network, check conf.py and bitcoin.conf. "
"Shutting down"))
else:
logging.error("[Pisad] can't connect to bitcoind. Shutting down")
logging.error(M("[Pisad] can't connect to bitcoind. Shutting down"))