mirror of
git://git.acid.vegas/IRCP.git
synced 2024-11-23 00:16:41 +00:00
Added note about possibly handling dict size checking another way
This commit is contained in:
parent
31cf9df5c4
commit
e0bb3f36b6
2
ircp.py
2
ircp.py
@ -289,7 +289,7 @@ class probe:
|
|||||||
args = line.split()
|
args = line.split()
|
||||||
numeric = args[1]
|
numeric = args[1]
|
||||||
#debug(line)
|
#debug(line)
|
||||||
if sys.getsizeof(self.snapshot) >= settings.log_max:
|
if sys.getsizeof(self.snapshot) >= settings.log_max: # TODO: Should we be checking this on every line of data from the server? Need to avoid asyncronous collisions possibly if not
|
||||||
with open(f'logs/{self.server}.json{self.multi}', 'w') as fp:
|
with open(f'logs/{self.server}.json{self.multi}', 'w') as fp:
|
||||||
json.dump(self.snapshot, fp)
|
json.dump(self.snapshot, fp)
|
||||||
self.snapshot = {'raw':list()}
|
self.snapshot = {'raw':list()}
|
||||||
|
Loading…
Reference in New Issue
Block a user