Try to use the logger to record your error messages