package storm.trident.operation.builtin;

import storm.trident.operation.BaseFilter;
import storm.trident.tuple.TridentTuple;

public class Debug extends BaseFilter {

    @Override
    public boolean isKeep(TridentTuple tuple) {
        System.out.println("DEBUG: " + tuple.toString());
        return true;
    }
    
}

@@ -159,16 +159,185 @@
 Filter %7B
+%0A    private final String name;%0A%0A    public Debug() %7B%0A        name = %22DEBUG: %22;%0A    %7D%0A%0A    public Debug(String name) %7B%0A        this.name = %22DEBUG(%22 + name + %22): %22;%0A    %7D
 %0A%0A    @O
@@ -419,25 +419,20 @@
 println(
-%22DEBUG: %22
+name
  + tuple
@@ -470,17 +470,12 @@
 ue;%0A
+
     %7D%0A
-    %0A
 %7D%0A

Allow Debug filters to print an identifier