Currently the logging for trenova is subpar, as the application is currently in active development, however I've already added logging to be initialized on the startup of the application. Unfortuntately, we'll have to go file by file and ensure that all current errors are being wrapped using eris and logrus.
Example:
current, err := r.client.CommentType.Get(ctx, commentType.ID)
if err != nil {
wrappedErr := eris.Wrap(err, "failed to retrieve comment type")
r.logger.WithField("error", wrappedErr).Error("failed to retrieve comment type")
return nil, wrappedErr
}
Currently the logging for trenova is subpar, as the application is currently in active development, however I've already added logging to be initialized on the startup of the application. Unfortuntately, we'll have to go file by file and ensure that all current errors are being wrapped using eris and logrus.
Example: