Allow stripping of error messages and warnings in production