Skip to content

Commit 1f28376

Browse files
committed
more logging improvements
1 parent 0ced5fb commit 1f28376

4 files changed

Lines changed: 3 additions & 16 deletions

File tree

src/core/gui_root.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def update_and_check(self, _=None):
195195
messagebox.showinfo("Update", "No new updates available.")
196196

197197
def show_logs(self, _=None):
198-
"""Display live-updating logs in a scrollable window with fixed footer buttons."""
198+
"""Display logs in a scrollable window with fixed footer buttons."""
199199
# Prevent duplicate windows
200200
if hasattr(self, "log_window") and self.log_window and self.log_window.winfo_exists():
201201
self.log_window.lift()

src/core/logic/app_tracker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def _fetch_app_names(self):
6868
apps.append(app_name)
6969
seen_names.append(app_name)
7070
if app_name == self.selected_app:
71-
#print(f"Selected app found: {app_name}") # Debugging line
71+
logger.debug(f"Seleced App found: {app_name}")
7272
break
7373
#print(app_name) # Debugging line to help optimize
7474
except (psutil.NoSuchProcess, psutil.AccessDenied, psutil.ZombieProcess):

src/core/logic/user_trackers.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -88,17 +88,3 @@ def is_pausing(self):
8888
def is_enabled(self):
8989
return self.enabled
9090

91-
class ResolveProjectTracker:
92-
"""Tracks if the user is in a specified DaVinci Resolve project or not"""
93-
def __init__(self, parent, logic_controller):
94-
self.parent = parent
95-
self.logic = logic_controller
96-
self.paused = False
97-
self.project_name = None
98-
self.project_open = False
99-
self.stop_event = threading.Event() # Used to stop the thread gracefully
100-
try:
101-
self.enabled = read_file(config_file())["resolve_tracker_enabled"]
102-
except FileNotFoundError or KeyError: #! KeyError for dev
103-
self.enabled = False # Default value
104-
self.update_thread = threading.Thread(target=self._update_project_status)

src/core/screens/splash_screen.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ def load_app():
9696
update_progress(30)
9797
if is_running():
9898
messagebox.showerror("Error", "The application is already running.\n\nExiting.")
99+
logger.error("The application is already running. Exiting.")
99100
splash_window.destroy()
100101
sys.exit(0)
101102

0 commit comments

Comments
 (0)