Change error_logger functions to lager.