refaktor logging
logging na std i debug do pliku
This commit is contained in:
12
main.py
12
main.py
@@ -1,20 +1,12 @@
|
||||
import logging
|
||||
import sys
|
||||
from gsheet_api import GSheetAPI
|
||||
|
||||
# Configure logging
|
||||
logging.basicConfig(
|
||||
level=logging.INFO,
|
||||
format="%(asctime)s - %(levelname)s - %(message)s",
|
||||
stream=sys.stdout,
|
||||
)
|
||||
|
||||
from logging_config import setup_logging
|
||||
from mayo import MayoSession
|
||||
from config import MAYO_URL, LOGIN, PASSWORD
|
||||
from workflow import select_sheet, get_sheet_data, save_results
|
||||
from processing import process_all_rows
|
||||
|
||||
def main():
|
||||
setup_logging()
|
||||
gsheet_api = GSheetAPI()
|
||||
|
||||
sheet_name = select_sheet()
|
||||
|
||||
Reference in New Issue
Block a user