diff --git a/cache/precache.py b/cache/precache.py index 7674c6e4..e692678c 100644 --- a/cache/precache.py +++ b/cache/precache.py @@ -101,7 +101,7 @@ async def precache_data(): # authors authors = get_with_stat(select(Author).where(Author.user.is_not(None))) - logger.debug(f"{len(authors)} authors found in database") + logger.info(f"{len(authors)} authors found in database") for author in authors: if isinstance(author, Author): profile = author.dict() diff --git a/services/sentry.py b/services/sentry.py index 2b42c1ed..b32b06e4 100644 --- a/services/sentry.py +++ b/services/sentry.py @@ -14,6 +14,7 @@ logger.setLevel(logging.DEBUG) # Более подробное логирова def start_sentry(): try: + logger.info("[services.sentry] Sentry init started...") sentry_sdk.init( dsn=GLITCHTIP_DSN, traces_sample_rate=1.0, # Захват 100% транзакций @@ -24,6 +25,6 @@ def start_sentry(): ) logger.info("[services.sentry] Sentry initialized successfully.") except Exception as e: - logger.error("[services.sentry] Failed to initialize Sentry", exc_info=True) + logger.warning("[services.sentry] Failed to initialize Sentry", exc_info=True)