# dmapp/dmcore/config.py import logging from pymongo import MongoClient from zoneinfo import ZoneInfo # Logging configuration logging.basicConfig( level=logging.INFO, format="%(asctime)s %(levelname)-8s [%(filename)s:%(lineno)d] %(message)s", datefmt="%Y-%m-%d %H:%M:%S", ) # 2) Get your module's logger and bump it to DEBUG logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) # 3) Silence pymongo (and any other libs you find chatty) logging.getLogger("pymongo").setLevel(logging.WARNING) # MongoDB configuration client = MongoClient() db = client.deskmeter # Collections switches = db.switch states = db.state tasks = db.task # Application configuration desktops = ("Plan", "Think", "Work", "Other", "Away", "Work", "Work", "Work") unlabeled = "Away" timezone = ZoneInfo("America/Argentina/Buenos_Aires") task_file = "/home/mariano/LETRAS/adm/task/main"