Skip to content

Commit 5b6754b

Browse files
committed
Revert unrelated change.
1 parent 62fa77a commit 5b6754b

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

src/main/java/com/hubspot/jinjava/lib/tag/ForTag.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
**********************************************************************/
1616
package com.hubspot.jinjava.lib.tag;
1717

18-
import static com.hubspot.jinjava.util.Logging.ENGINE_LOG;
19-
2018
import com.google.common.collect.Lists;
2119
import com.hubspot.jinjava.doc.annotations.JinjavaDoc;
2220
import com.hubspot.jinjava.doc.annotations.JinjavaHasCodeBody;
@@ -167,7 +165,6 @@ public String renderForCollection(
167165
Object collection
168166
) {
169167
ForLoop loop = ObjectIterator.getLoop(collection);
170-
int loopCount = 0;
171168

172169
try (InterpreterScopeClosable c = interpreter.enterScope()) {
173170
if (interpreter.isValidationMode() && !loop.hasNext()) {
@@ -181,7 +178,6 @@ public String renderForCollection(
181178
interpreter.getConfig().getMaxOutputSize()
182179
);
183180
while (loop.hasNext()) {
184-
++loopCount;
185181
Object val;
186182
try {
187183
val = interpreter.wrap(loop.next());
@@ -278,8 +274,6 @@ public String renderForCollection(
278274
}
279275
}
280276
return checkLoopVariable(interpreter, buff);
281-
} finally {
282-
ENGINE_LOG.error("Loop count {}", loopCount);
283277
}
284278
}
285279

0 commit comments

Comments
 (0)