Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Jeremy Grossmann 2026-04-07 17:37:34 +08:00 committed by GitHub
parent 725cd0428c
commit de8abc0af0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -363,7 +363,7 @@ class Controller:
except (ControllerError, NotImplementedError):
pass # Skip not compatible projects
except Exception as e:
log.warning(f"Could not load project from '{project_file}': {e}")
log.warning(f"Could not load project from '{project_file}': {e}", exc_info=True)
except OSError as e:
log.error(str(e))
@ -380,7 +380,7 @@ class Controller:
try:
observer = Observer()
observer.schedule(_ProjectsDirectoryEventHandler(self, projects_path), projects_path, recursive=True)
observer.schedule(_ProjectsDirectoryEventHandler(self, projects_path), projects_path, recursive=False)
observer.start()
self._projects_observer = observer
log.info(f"Watching projects directory '{projects_path}' for changes")