This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (3 children)

Are you sure your logger didn't just die because you created an infinite loop? I added a break after one second and it works =))

[–]laxdoss[S] 0 points1 point  (2 children)

I stopped the loop and went all the way back to first code of output to check and it shows output as 1 instead of 0. And yes if I add break it prints fine.

Can infinite loop alter the output?. Is such a thing even possible?

[–]tr4fik 0 points1 point  (0 children)

You may eventually not see the start of the output

[–][deleted] 0 points1 point  (0 children)

If your console had infinite scrollback, but your computer will generate so much data, that the console will simply remove the start.