mirror of
https://github.com/aljazceru/python-teos.git
synced 2026-02-23 15:34:18 +01:00
Removes Logger dependency from setup_data_folder
Logger was only used to log when a new folder was created, and was making that the setup needed to be done on the main of pisad and cli instead of __init__, which seems a better fit
This commit is contained in:
@@ -3,7 +3,6 @@ from sys import argv, exit
|
||||
from signal import signal, SIGINT, SIGQUIT, SIGTERM
|
||||
|
||||
from common.logger import Logger
|
||||
from common.tools import setup_data_folder
|
||||
|
||||
from pisa import config, LOG_PREFIX
|
||||
from pisa.api import API
|
||||
@@ -34,8 +33,6 @@ def main():
|
||||
signal(SIGQUIT, handle_signals)
|
||||
|
||||
logger.info("Starting PISA")
|
||||
|
||||
setup_data_folder(config.get("DATA_FOLDER"), logger)
|
||||
db_manager = DBManager(config.get("DB_PATH"))
|
||||
|
||||
if not can_connect_to_bitcoind():
|
||||
|
||||
Reference in New Issue
Block a user