A sample to demo issue with messages written to console not showing up in the terminal