When you take out the line insertion and just log ...
# suitescript
e
When you take out the line insertion and just log a message, you're no longer changing the sublist or retriggering your function, so you only see it once.