Fixing logging to not just show "non-empty iterator"