Mercurial > dive4elements > river
changeset 4495:c095eb67c975
Improve loggin in FLYSArtifact
author | Björn Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Wed, 14 Nov 2012 11:10:06 +0100 |
parents | 334c68344eb5 |
children | d8992459b408 |
files | flys-artifacts/src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java |
diffstat | 1 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java Wed Nov 14 11:20:06 2012 +0100 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java Wed Nov 14 11:10:06 2012 +0100 @@ -930,6 +930,8 @@ } log.warn("Could not find facet: " + name + " at " + index); + log.warn("Available facets for : " + getName() + " " + identifier() + + ": " + facets.values()); return null; } @@ -1229,6 +1231,9 @@ } return new ArrayList<Output>(); } + if (debug) { + log.debug("State '" + stateId + "' has facets " + fs); + } List<Output> gen = generateOutputs(list, fs); @@ -1249,10 +1254,13 @@ */ protected List<Output> generateOutputs(List<Output> list, List<Facet> fs) { List<Output> generated = new ArrayList<Output>(); + log.debug("generateOutputs for Artifact " + getName() + " " + + identifier()); boolean debug = log.isDebugEnabled(); for (Output out: list) { + log.debug("check facets for output: " + out.getName()); Output o = new DefaultOutput( out.getName(), out.getDescription(), @@ -1439,6 +1447,9 @@ protected void dumpArtifact() { log.debug("++++++++++++++ DUMP ARTIFACT DATA +++++++++++++++++"); // Include uuid, type, name + log.debug(" - Name: " + getName()); + log.debug(" - UUID: " + identifier()); + log.debug(" - Class: " + this.getClass().getName()); log.debug("------ DUMP DATA ------"); Collection<StateData> allData = data.values();