From 362692a6b766236252619c2ca2b8477a0db0db72 Mon Sep 17 00:00:00 2001 From: SebastianSarzosa Date: Wed, 28 Jan 2026 15:00:06 +0100 Subject: [PATCH] style: replace print statements with logging module Implemented the logging library to manage output messages more effectively than standard print statements. --- main.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 822403a7..204a2116 100644 --- a/main.py +++ b/main.py @@ -1,3 +1,7 @@ +import logging + +logging.basicConfig(level=logging.INFO, format='%(levelname)s: %(message)s') + import os from dotenv import load_dotenv from cryptography.hazmat.primitives import serialization @@ -31,7 +35,7 @@ # Get account balance balance = client.get_balance() -print("Balance:", balance) +logging.info ("Balance:", balance) # Initialize the WebSocket client ws_client = KalshiWebSocketClient( @@ -41,4 +45,4 @@ ) # Connect via WebSocket -asyncio.run(ws_client.connect()) \ No newline at end of file +asyncio.run(ws_client.connect())