Fix logging, fix shelve .db extensions

This commit is contained in:
Rykov7
2024-06-02 13:05:31 +03:00
parent 39ba68c07c
commit 91a365067c
4 changed files with 25 additions and 23 deletions
+3 -1
View File
@@ -20,5 +20,7 @@ RULES_URL = os.environ.get("rules_url", "https://telegra.ph/pythonchatru-07-07")
if not is_url_reachable(RULES_URL):
raise LookupError(f"STAN rules url({RULES_URL}) is not reachable")
logging.basicConfig(level=logging.INFO, format="%(asctime)s %(message)s", datefmt="%Y-%m-%d %H:%M:%S")
logging.basicConfig(level=logging.INFO, format="%(asctime)s %(message)s", datefmt="%Y-%m-%d %H:%M:%S", force=True)
logger.setLevel(logging.ERROR)
logging.critical(f'LOGGER {logging.getLogger()}: ')