from functools import lru_cache
from os import getenv

from Config.AppConfig import AppConfig
from Utils import logger


@lru_cache()
def generateSettings() -> AppConfig:
    functionDesc = "GenerateSettings"
    fileName = __name__.rsplit(".", maxsplit=1)[-1]
    logger.info(fileName=fileName, functionName=functionDesc,
                message=f"Using {getenv('DEVELOPMENT_MODE').title()} Environment Config")
    return AppConfig()

from functools import lru_cache
from os import getenv

from Config.AppConfig import AppConfig
from Utils import logger


@lru_cache()
def generateSettings() -> AppConfig:
    functionDesc = "GenerateSettings"
    fileName = __name__.rsplit(".", maxsplit=1)[-1]
    logger.info(fileName=fileName, functionName=functionDesc,
                message=f"Using {getenv('DEVELOPMENT_MODE').title()} Environment Config")
    return AppConfig()
