Skip to content

Commit

Permalink
Remove code related to no-longer-used websockets library (#11123)
Browse files Browse the repository at this point in the history
* Remove logging tweak for no-longer-used websockets library

Follow up after #10611.

* Update pylintrc

* Update test_daemon.py
  • Loading branch information
altendky committed Apr 20, 2022
1 parent 6c8fa52 commit 1088801
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion chia/util/chia_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ def initialize_logging(service_name: str, logging_config: Dict, root_path: Path)
elif logging_config["log_level"] == "DEBUG":
logger.setLevel(logging.DEBUG)
logging.getLogger("aiosqlite").setLevel(logging.INFO) # Too much logging on debug level
logging.getLogger("websockets").setLevel(logging.INFO) # Too much logging on debug level
else:
logger.setLevel(logging.INFO)
else:
Expand Down
1 change: 0 additions & 1 deletion pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,6 @@ ignored-modules=blspy,
chiavdf,
cryptography,
aiohttp,
websockets,
keyring,
keyrings.cryptfile,
bitstring,
Expand Down
6 changes: 0 additions & 6 deletions tests/core/daemon/test_daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,6 @@ async def reader(ws, queue):
read_handler.cancel()
assert blockchain_state_found

# Suppress warning: "The explicit passing of coroutine objects to asyncio.wait() is deprecated since Python 3.8..."
# Can be removed when we upgrade to a newer version of websockets (9.1 works)
@pytest.mark.filterwarnings("ignore::DeprecationWarning:websockets.*")
@pytest.mark.asyncio
async def test_validate_keyring_passphrase_rpc(self, get_daemon_with_temp_keyring):
local_b_tools: BlockTools = get_daemon_with_temp_keyring[0]
Expand Down Expand Up @@ -169,9 +166,6 @@ async def check_empty_passphrase_case(response: aiohttp.http_websocket.WSMessage
# Expect: validation failure
await check_empty_passphrase_case(await ws.receive())

# Suppress warning: "The explicit passing of coroutine objects to asyncio.wait() is deprecated since Python 3.8..."
# Can be removed when we upgrade to a newer version of websockets (9.1 works)
@pytest.mark.filterwarnings("ignore::DeprecationWarning:websockets.*")
@pytest.mark.asyncio
async def test_add_private_key(self, get_daemon_with_temp_keyring):
local_b_tools: BlockTools = get_daemon_with_temp_keyring[0]
Expand Down

0 comments on commit 1088801

Please sign in to comment.