test
Created by: Krugou
Add error logging to various controllers, models, and servers.
-
Controllers:
- Import
logger
from../utils/logger.js
inadmincontroller.ts
,attendancecontroller.ts
,coursecontroller.ts
,lecturecontroller.ts
, andtopicgroupcontroller.ts
. - Add
logger.error
in thecatch
blocks of various methods in these controllers.
- Import
-
Servers:
- Import
logger
from./utils/logger.js
injaksecfileserver.ts
andjaksecserver.ts
. - Add
logger.info
in thehttp.listen
callback in both servers.
- Import
-
Models:
- Import
logger
from../utils/logger.js
inattendancemodel.ts
,coursemodel.ts
, andlecturemodel.ts
. - Add
logger.error
in thecatch
blocks of various methods in these models.
- Import
For more details, open the Copilot Workspace session.