test

jeremah
2024-11-18T20:17:30Z

*Created by: Krugou*

Add error logging to various controllers, models, and servers.

* **Controllers:**
- Import `logger` from `../utils/logger.js` in `admincontroller.ts`, `attendancecontroller.ts`, `coursecontroller.ts`, `lecturecontroller.ts`, and `topicgroupcontroller.ts`.
- Add `logger.error` in the `catch` blocks of various methods in these controllers.

* **Servers:**
- Import `logger` from `./utils/logger.js` in `jaksecfileserver.ts` and `jaksecserver.ts`.
- Add `logger.info` in the `http.listen` callback in both servers.

* **Models:**
- Import `logger` from `../utils/logger.js` in `attendancemodel.ts`, `coursemodel.ts`, and `lecturemodel.ts`.
- Add `logger.error` in the `catch` blocks of various methods in these models.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/Krugou/JakSurveillance?shareId=fdb4f4a0-da31-4596-9afc-0b20c8e16823).