• I already have logging set up to redirect the errors to a flat file.

    problem is only the first error is getting thrown.