diff --git a/.env.example b/.env.example index 9eece2d..8a04a79 100644 --- a/.env.example +++ b/.env.example @@ -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" diff --git a/dasbot.py b/dasbot.py index d985100..e3b4bd3 100644 --- a/dasbot.py +++ b/dasbot.py @@ -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, @@ -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) diff --git a/dasbot/broadcaster.py b/dasbot/broadcaster.py index d9b36f6..d3c4d86 100644 --- a/dasbot/broadcaster.py +++ b/dasbot/broadcaster.py @@ -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):