lyft / metadataproxy

A proxy for AWS's metadata service that gives out scoped IAM credentials from STS
Other
456 stars 69 forks source link

Logging not working from flask #51

Closed carolinebeauchamp closed 4 years ago

carolinebeauchamp commented 7 years ago

With debug switched on debug output from gunicorn appears in the logs but not output from the application itself, via flask.

something akin to:

log = logging.getLogger(__name__)
stream_handler = StreamHandler(stream=sys.stdout)
app.logger.addHandler(stream_handler)

in __init__.py appears to make it work, along with setting the logging level.

I can do a pull request for this, unless someone knows a better way - python isn't my first language, so I'm not completely sure whether this is the usual/best/conventional way of doing this :)

ryan-lane commented 4 years ago

Released in 1.11.0

ryan-lane commented 4 years ago

Let me know if things aren't working as intended in that version.