error handling in logging_controller