Found the answer in the foreman wiki on github:
If you are not seeing any output from your program, there is a likely chance that it is buffering stdout. Many languages such as Ruby and Python buffer stdout by default. To disable this behavior, add this code as early as possible in your program:
$stdout.sync = true
source: https://github.com/ddollar/foreman/wiki/Missing-Output