If there is trouble on the log copy print the error to the log so it is easier to diagnose the problem.