Open oliverhummel opened 3 years ago
in de.hs_mannheim.informatik.ct.controller
Use @Slf4j and log.error... to add logging for each error that may occur, otherwise tracing errors from the log is impossible.
Especially the cause for the anyException should be logged: add Exception as a param to the method and log the exception, pls.
And at this occasion also remove the Sysout in line 125.
Made PR #243 for an example. (probably the other methods do not need a full stack trace).
Since most methods here are copy and paste, the whole class could be shrunk to three methods when all exceptions inherited from one common super class such as CttException and use the same handling method then.
in de.hs_mannheim.informatik.ct.controller
Use @Slf4j and log.error... to add logging for each error that may occur, otherwise tracing errors from the log is impossible.
Especially the cause for the anyException should be logged: add Exception as a param to the method and log the exception, pls.
And at this occasion also remove the Sysout in line 125.
Made PR #243 for an example. (probably the other methods do not need a full stack trace).