Skip to content

Commit

Permalink
fix: remove unnecessary logging
Browse files Browse the repository at this point in the history
  • Loading branch information
noahhusby committed Sep 9, 2024
1 parent 96096bd commit 734b39a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions aiostreammagic/stream_magic.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import asyncio
import json
from asyncio import AbstractEventLoop, Future, Task
from datetime import datetime
from datetime import datetime, UTC
from typing import Any

import websockets
Expand Down Expand Up @@ -128,7 +128,6 @@ async def consumer_handler(self, ws: WebSocketClientProtocol, subscriptions: dic
subscription_tasks = {}
try:
async for raw_msg in ws:
print(futures or subscriptions)
if futures or subscriptions:
_LOGGER.debug("recv(%s): %s", self.host, raw_msg)
msg = json.loads(raw_msg)
Expand Down Expand Up @@ -185,7 +184,6 @@ async def request(self, path: str, params=None) -> Any:
path_futures.remove(res)
raise
path_futures.remove(res)
print(response)
message = response["message"]
result = response["result"]
if result != 200:
Expand Down Expand Up @@ -261,7 +259,7 @@ async def _async_handle_position(self, payload) -> None:
params = payload["params"]
if "data" in params and params["data"]["position"] and self.play_state:
self.play_state.position = params["data"]["position"]
self.position_last_updated = datetime.now()
self.position_last_updated = datetime.now(UTC)
await self.do_state_update_callbacks()

async def _async_handle_now_playing(self, payload) -> None:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "aiostreammagic"
version = "2.0.1"
version = "2.0.2"
description = "An async python package for interfacing with Cambridge Audio / Stream Magic compatible streamers."
authors = ["Noah Husby <32528627+noahhusby@users.noreply.github.com>"]
maintainers = ["Noah Husby <32528627+noahhusby@users.noreply.github.com>"]
Expand Down

0 comments on commit 734b39a

Please sign in to comment.