fix debug logging for snapshot generation
This commit is contained in:
parent
2a0d8a236f
commit
41abbb21a0
|
@ -2275,6 +2275,9 @@ public abstract class BaseWorkerContext extends I18nBase implements IWorkerConte
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
System.out.println("Unable to generate snapshot for "+tail(sd.getUrl()) +" from "+tail(sd.getBaseDefinition())+" because "+e.getMessage());
|
System.out.println("Unable to generate snapshot for "+tail(sd.getUrl()) +" from "+tail(sd.getBaseDefinition())+" because "+e.getMessage());
|
||||||
|
if (logger.isDebugLogging()) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
System.out.print(":");
|
System.out.print(":");
|
||||||
|
|
|
@ -207,7 +207,7 @@ public class ContextUtilities implements ProfileKnowledgeProvider {
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
if (!isSuppressDebugMessages()) {
|
if (!isSuppressDebugMessages()) {
|
||||||
System.out.println("Unable to generate snapshot for "+tail(sd.getUrl()) +" from "+tail(sd.getBaseDefinition())+" because "+e.getMessage());
|
System.out.println("Unable to generate snapshot for "+tail(sd.getUrl()) +" from "+tail(sd.getBaseDefinition())+" because "+e.getMessage());
|
||||||
if (true) {
|
if (context.getLogger().isDebugLogging()) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -660,6 +660,9 @@ public class SimpleWorkerContext extends BaseWorkerContext implements IWorkerCon
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
// not sure what to do in this case?
|
// not sure what to do in this case?
|
||||||
System.out.println("Unable to generate snapshot for "+uri+": "+e.getMessage());
|
System.out.println("Unable to generate snapshot for "+uri+": "+e.getMessage());
|
||||||
|
if (logger.isDebugLogging()) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return r;
|
return r;
|
||||||
|
|
|
@ -764,9 +764,9 @@ public class ValidationEngine implements IValidatorResourceFetcher, IValidationP
|
||||||
makeSnapshot(sd);
|
makeSnapshot(sd);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
System.out.println("Process Note: Unable to generate snapshot for " + sd.present() + ": " + e.getMessage());
|
System.out.println("Process Note: Unable to generate snapshot for " + sd.present() + ": " + e.getMessage());
|
||||||
// if (debug) {
|
if (context.getLogger().isDebugLogging()) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue