Skip to content
Snippets Groups Projects
Commit 049a248f authored by Aleksandra Edwards's avatar Aleksandra Edwards
Browse files

Fixes logging and MQTT Configuration

parent 0712f965
No related branches found
No related tags found
No related merge requests found
......@@ -37,8 +37,7 @@ def check_for_new_logs():
if compare_logs():
print("New logs found:")
new_logs = compare_logs()
insert_log_into_collection(new_logs)
for line in new_logs:
print(line.strip())
log_dict = {'log':new_logs}
insert_log_into_collection(log_dict)
else:
print("No new logs found.")
\ No newline at end of file
......@@ -33,8 +33,6 @@ def get_file_contents_from_container(container_name, directory_path):
file_list = [file_name for file_name in file_list if file_name.endswith(".log") and not file_name.endswith(".security.log")]
print(file_list)
file_contents = []
for file_name in file_list:
if file_name.strip(): # Ensure non-empty file names
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment