This commit is contained in:
Untone 2024-10-14 09:33:31 +03:00
parent 503e859b5c
commit 78d575863d
2 changed files with 3 additions and 2 deletions

2
cache/precache.py vendored
View File

@ -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()

View File

@ -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)