Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

proper error logging in the docker image #16

Closed
Dieterbe opened this issue Apr 8, 2014 · 3 comments
Closed

proper error logging in the docker image #16

Dieterbe opened this issue Apr 8, 2014 · 3 comments

Comments

@Dieterbe
Copy link
Contributor

Dieterbe commented Apr 8, 2014

While testing my custom finder, I can make gunicorn return "500 Internal Server Error" by doing requests to /render and /metrics/find

i use the image as per https://index.docker.io/u/brutasse/graphite-api/,
and hence run gunicorn -b 0.0.0.0:8000 -w 2 --log-level debug graphite_api.app:app
but it only logs https://gist.github.com/Dieterbe/10199015 i don't get anything more.
nothing on the terminal, no logfiles :(
i want to see why it errors, if there's any python errors and stack dumps, etc.

@crossjam
Copy link

I had to add

logging:
  disable_existing_loggers: false

to my graphite-api.yaml config due to the way Python configures logging:
https://docs.python.org/2/library/logging.config.html

I don't think there's any way to change this setting from the command line although I didn't dig too hard.

@Dieterbe
Copy link
Contributor Author

Dieterbe commented Jun 9, 2014

ping @brutasse ? besides stdout/logfiles, the ability to see the error in the http response from graphite-api would be great too.

@brutasse
Copy link
Owner

brutasse commented Oct 5, 2015

Done in b7571fe, at last :)

@brutasse brutasse closed this as completed Oct 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants