logfixes
This commit is contained in:
parent
503e859b5c
commit
78d575863d
2
cache/precache.py
vendored
2
cache/precache.py
vendored
|
@ -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()
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user