Skip to content

Commit

Permalink
better debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
tgodfrey0 committed Dec 22, 2023
1 parent 4fc5338 commit 0e5eb4a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 72 deletions.
70 changes: 0 additions & 70 deletions logger.py

This file was deleted.

2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = swarmnet
version = 0.0.2
version = 0.0.3
author = Toby Godfrey
author_email = swarmnet@tgodfrey.com
description = A gossip-based swarm communication library
Expand Down
8 changes: 7 additions & 1 deletion src/swarmnet/msg_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,10 @@ def parse_msg(self) -> None:
log.info(f"Parse thread spawned to parse {cmd} command")

except KeyError:
log.error(f"No registered parser for command {cmd}")
log.error(f"No registered parser for command {cmd}")
log.error("Registered parsers exist for commands:")
for c in self.fn_map.keys():
if(c == "JOIN"):
continue

log.error(c)

0 comments on commit 0e5eb4a

Please sign in to comment.