mirror of
https://github.com/aljazceru/python-teos.git
synced 2025-12-17 22:24:23 +01:00
bitcoin_cli as a global variable in the main __init__.py was creating issues related to http.client.CannotSendRequest: Request-sent and connection re-usage. Define a new connection per request.
14 lines
296 B
Python
14 lines
296 B
Python
import logging
|
|
|
|
from pisa.utils.auth_proxy import AuthServiceProxy
|
|
import pisa.conf as conf
|
|
|
|
HOST = 'localhost'
|
|
PORT = 9814
|
|
|
|
# Configure logging
|
|
logging.basicConfig(format='%(message)s', level=logging.INFO, handlers=[
|
|
logging.FileHandler(conf.SERVER_LOG_FILE),
|
|
logging.StreamHandler()
|
|
])
|