Пример #1
0
 def __init__(self, logfile=None, debug=False):
     self.__conns = {}  # username:connection
     self.__logger = LoggerBuilder().build_logger("Database",
                                                  logfile=logfile,
                                                  debug=debug)
     self.__logger.info("The database has been initialized.")
     self.__demos = {}
     atexit.register(self.__confirm_demo_user_deletion)
Пример #2
0
 def __init__(self, logfile=SERVER_LOG, debug=True):
     self.__db = Database(debug=debug, logfile=DB_LOG)
     self.__authenticated_users = {}
     self.__timers = {}
     self.__blacklist = {}
     self.__logger = LoggerBuilder().build_logger("Server",
                                                  logfile=logfile,
                                                  debug=debug)
     self.__logger.info("The server been initialized.")