mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-04-28 03:00:18 -04:00
clean_logs: add assert
This commit is contained in:
@@ -133,6 +133,8 @@ def replace(fname, contents):
|
||||
# Multiline logs
|
||||
# We read the next line and check if there's a target set or not
|
||||
else:
|
||||
assert re.search(f"{log_level}!\\($", line)
|
||||
|
||||
old_text = f"{ln()}: {line}"
|
||||
new_text = f"{ln()}: {line}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user