Skip to content

Instantly share code, notes, and snippets.

@nvie
Last active October 21, 2015 15:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nvie/269f2c272c988ef8ab79 to your computer and use it in GitHub Desktop.
Save nvie/269f2c272c988ef8ab79 to your computer and use it in GitHub Desktop.

Here's my config:

$ cat Procfile.test
foo: python -u foo.py

$ cat foo.py
import logging
logging.basicConfig()
logging.warn('A log line\nWith a line break')
logging.warn('Second log')

Now, watch this. This behaves okay.

$ python -u foo.py  # both log lines will be shown (= okay)
WARNING:root:A log line
With a line break
WARNING:root:Second log

But when run with Heroku's local command:

$ heroku local -f Procfile.test  # clipping second log line (= not okay)
forego | starting foo.1 on port 5000
foo.1  | WARNING:root:A log line
foo.1  | WARNING:root:Second log
@vinitkumar
Copy link

Try running foreman start, That shows all the processes output to stdout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment