Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Log json #29

Merged
merged 5 commits into from
Jun 15, 2015
Merged

Log json #29

merged 5 commits into from
Jun 15, 2015

Conversation

davidlmorton
Copy link
Contributor

This will allow us to globally set the log formatter to JSON with:

PTERO_LOG_FORMAT_JSON=1

Closes #28

Somehow, even with the version number pinned, the interface we were
using 'get_children' was removed.  This pins us to a later version and
updates the use of the interface, now called 'children'.
To turn this feature on set the following environment:

PTERO_LOG_FORMAT_JSON=1
The flask request object is global to a given request.  Set the
workflow_id attribute on the flask request to log the workflowId.

If the flask request does not have a workflow_id attribute set, the log
JSON will include:

"workflowID": null
@davidlmorton davidlmorton self-assigned this Jun 15, 2015
@mkiwala
Copy link
Contributor

mkiwala commented Jun 15, 2015

+1

davidlmorton added a commit that referenced this pull request Jun 15, 2015
@davidlmorton davidlmorton merged commit a1dbe47 into genome:master Jun 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants