Skip to content

Commit

Permalink
disable Sentry tracing, cosmetic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
wetterkrank committed Mar 17, 2024
1 parent b4d1240 commit d0f85ec
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Overrides settings.toml

ENV_FOR_DYNACONF="development"
DYNACONF_TELEGRAM_TOKEN="TELEGRAM_TOKEN"
ENV_FOR_DYNACONF = "development"
DYNACONF_TELEGRAM_TOKEN = "TELEGRAM_TOKEN"

DYNACONF_DB_ADDRESS = "mongodb://127.0.0.1"
DYNACONF_DB_USERNAME = "dasbot"
Expand Down
5 changes: 2 additions & 3 deletions dasbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@
if settings.get('SENTRY_DSN'):
sentry_sdk.init(
dsn=settings.SENTRY_DSN,
traces_sample_rate=1.0,
profiles_sample_rate=1.0,
enable_tracing=False
)

logging.basicConfig(level=logging.DEBUG if settings.get('DEBUG') else logging.INFO,
Expand Down Expand Up @@ -103,7 +102,7 @@ def run_webhook():
async def on_startup(bot: Bot):
add_coroutines()
webhook_url = f"{settings.WEBHOOK_HOST}{settings.WEBHOOK_PATH}"
log.info('setting webhook: %s', webhook_url)
log.info('Setting webhook: %s', webhook_url)
await bot.delete_webhook(drop_pending_updates=True)
await bot.set_webhook(webhook_url, secret_token=settings.WEBHOOK_SECRET)

Expand Down
1 change: 0 additions & 1 deletion dasbot/broadcaster.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ async def broadcast(self):
result = await self.send_quiz(chat)
if result:
sent += 1
log.info("Broadcast: %s sent.", sent)

# Runs the broadcast loop
async def run(self):
Expand Down

0 comments on commit d0f85ec

Please sign in to comment.