Mercurial > dive4elements > river
changeset 8518:2dba91c00c72
On error log error.
author | "Tom Gottfried <tom@intevation.de>" |
---|---|
date | Thu, 18 Dec 2014 16:12:01 +0100 |
parents | 288ea098494c |
children | dbb6702dedff |
files | artifacts/src/main/java/org/dive4elements/river/wsplgen/WSPLGENCallable.java |
diffstat | 1 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/wsplgen/WSPLGENCallable.java Thu Dec 18 15:45:17 2014 +0100 +++ b/artifacts/src/main/java/org/dive4elements/river/wsplgen/WSPLGENCallable.java Thu Dec 18 16:12:01 2014 +0100 @@ -94,7 +94,13 @@ } catch (InterruptedException iee) { /* do nothing */ } - log.info("WSPLGEN exit value: " + process.exitValue()); + int exitValue = process.exitValue(); + if (exitValue < 2) { + log.info("WSPLGEN exit value: " + exitValue); + } + else { + log.error("WSPLGEN exit value: " + exitValue); + } log.info( "WSPLGEN throw " + errorObserver.numErrors() + " errors."); @@ -102,7 +108,7 @@ "WSPLGEN throw " + errorObserver.numWarnings() + " warnings."); - if (process.exitValue() < 2 && errorObserver.numErrors() == 0) { + if (exitValue < 2 && errorObserver.numErrors() == 0) { FacetCreator fc = job.getFacetCreator(); fc.createWSPLGENFacet(); fc.finish();