Skip to content

Commit

Permalink
Merge pull request mapfish#503 from mapfish/missing_field
Browse files Browse the repository at this point in the history
Fix wrongfull error message
  • Loading branch information
Patrick Valsecchi authored Mar 6, 2017
2 parents 86b4a86 + daa4dce commit 58a6748
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
* The AbstractJasperReportOutputFormat class.
*/
public abstract class AbstractJasperReportOutputFormat implements OutputFormat {
private static final Logger LOGGER = LoggerFactory.getLogger(JasperReportPDFOutputFormat.class);
private static final Logger LOGGER = LoggerFactory.getLogger(AbstractJasperReportOutputFormat.class);

@Autowired
private ForkJoinPool forkJoinPool;
Expand Down Expand Up @@ -222,10 +222,10 @@ private void checkRequiredFields(final Configuration configuration, final JRData
if (!clazz.isInstance(record)) {
wrongType.append("\t* ").append(name).append(" : ").append(record.getClass().getName());
wrongType.append(" expected type: ").append(type).append("\n");
} else {
LOGGER.warn("The field " + name + " in " + reportTemplate + " is not available in at least one of the " +
"rows in the datasource. This may not be an error.");
}
} else {
LOGGER.warn("The field " + name + " in " + reportTemplate + " is not available in at least one of the " +
"rows in the datasource. This may not be an error.");
}
}
}
Expand Down

0 comments on commit 58a6748

Please sign in to comment.