Skip to content

Commit 32288a8

Browse files
committed
Add warning if no data-handlers are defined.
1 parent f8cb3d6 commit 32288a8

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/main/java/nl/rug/jbi/jsm/core/pipeline/Pipeline.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ private void registerMetricInternal(final BaseMetric metric, final Stack<Class>
156156
}
157157
}
158158

159+
if (executors.isEmpty()) {
160+
logger.warn("{} has no defined data handlers, this might not be intended.", metric.getClass());
161+
}
162+
159163
//Extract a set of data from the list of listeners.
160164
final Set<Class> usedData = FluentIterable.from(executors)
161165
.transform(new Function<Pair<Class, HandlerExecutor>, Class>() {

0 commit comments

Comments
 (0)