Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error from callback <function message_handler at 0x7fe16a1b2b90>: name 'logging' is not defined #318

Closed
Louispowwwwwww opened this issue May 8, 2024 · 0 comments

Comments

@Louispowwwwwww
Copy link

Louispowwwwwww commented May 8, 2024

from binance.websocket.spot.websocket_api import SpotWebsocketAPIClient

def message_handler(_, message):
logging.info(message)

my_client = SpotWebsocketAPIClient(on_message=message_handler)

my_client.ticker(symbol="BNBBUSD", type="FULL")

Error from callback <function message_handler at 0x7fe16a1b2b90>: name 'logging' is not defined

@Louispowwwwwww Louispowwwwwww changed the title what should i do Error from callback <function message_handler at 0x7fe16a1b2b90>: name 'logging' is not defined May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant