Skip to content

Commit

Permalink
Update logger.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxLastBreath authored Nov 16, 2024
1 parent f1380e3 commit 0758703
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def start_logger():
# Print Memory
try:
memory_info = psutil.virtual_memory()
total_memory = memory_info.total//1048576000
total_memory = memory_info.total/1024/1024
memory_used = memory_info.percent
except Exception as e:
log.warning(f"The System Memory was not detected, nothing to be concerned about. {e}")
Expand All @@ -57,4 +57,4 @@ def write_data(file_name, data, mode, space=None):
file.write(data, space_around_delimiters=False)
logging.info(f"Successfully wrote %d bytes into %s", len(data), file_name)
except FileNotFoundError:
logging.exception(f"Failed to write data into %s", file_name)
logging.exception(f"Failed to write data into %s", file_name)

0 comments on commit 0758703

Please sign in to comment.