Avoid logs from HTTPX

This commit is contained in:
Michał Rudowicz 2024-06-12 06:54:59 +02:00
parent 51f34324fb
commit 0197c70d80
1 changed files with 1 additions and 0 deletions

View File

@ -29,6 +29,7 @@ async def new_msg(update, context, regexes):
if __name__ == '__main__': if __name__ == '__main__':
logging.basicConfig(format='%(asctime)s|%(levelname)s|%(message)s', level=logging.INFO) logging.basicConfig(format='%(asctime)s|%(levelname)s|%(message)s', level=logging.INFO)
logging.getLogger("httpx").setLevel(logging.WARNING)
logging.info("Starting") logging.info("Starting")
config = load_config() config = load_config()
application = Application.builder().token(config["telegramApiKey"]).build() application = Application.builder().token(config["telegramApiKey"]).build()