ensure log and error are created