started adding some basic logging functionality

This commit is contained in:
UpstreamData
2022-03-14 15:52:46 -06:00
parent 2380b94db1
commit c22be7ded8
7 changed files with 82 additions and 16 deletions

View File

@@ -16,6 +16,10 @@ class MinerNetwork:
def __len__(self):
return len([item for item in self.get_network().hosts()])
def __repr__(self):
return str(self.network)
def get_network(self) -> ipaddress.ip_network:
"""Get the network using the information passed to the MinerNetwork or from cache."""
# if we have a network cached already, use that