Logging inside Java Stream
Background
Once upon a time, I wanted to log something that was executed inside the Java stream for debugging purposes.
But, I didn't see anything logged there.
Solution
Put the log inside the peek() method instead of map().
Example
Previously, I was...
redhoyasa.hashnode.dev1 min read