Skip to content

Commit

Permalink
fix bug regarding log tab for webgui not properly clearing
Browse files Browse the repository at this point in the history
  • Loading branch information
Bikatr7 committed May 16, 2024
1 parent 398ec53 commit b24d822
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions webgui.py
Original file line number Diff line number Diff line change
Expand Up @@ -1151,10 +1151,8 @@ def clear_log_button_click() -> typing.Tuple[str, str]:
"""

## also needs to clear the log and error log files
FileEnsurer.standard_overwrite_file(FileEnsurer.debug_log_path, "")
FileEnsurer.standard_overwrite_file(FileEnsurer.error_log_path, "")

## We don't actually clear the logs as they need to be kept. We just clear the output fields
logging_tab_debug_log_output_field = ""
logging_tab_error_log_output_field = ""

Expand Down

0 comments on commit b24d822

Please sign in to comment.