Removing double log issue with client-tester

 Moving Messages struct in db-lib to root for less namespacing uglyness
 Removing an whole unused trait
 Message::get_time_range now returns a special 'UserMessage' struct that includes the name of the author
 More code must be removed from db-lib since a ton of the trait methods aren't used anymore
This commit is contained in:
shockrah
2021-03-07 13:29:10 -08:00
parent a6e3f22eae
commit 12936d5b1a
4 changed files with 34 additions and 123 deletions

View File

@@ -84,10 +84,6 @@ class Worker:
for key in ids:
self.responses[key].log()
# Logg the provided data to ensure that _it_ wasn't the cause for error
resp = self.responses[key]
if resp.code != resp.expected:
self.responses[key].log()
# if body is request to be shown then dump it tabbed out by 1 tab
if self.body_logs[key] is True:
print(f'\tBody: {self.responses[key].body}')