Closed
Bug 1229025
Opened 9 years ago
Closed 9 years ago
Document treeherder-client logging/debugging
Categories
(Tree Management :: Treeherder, defect, P2)
Tree Management
Treeherder
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: emorley, Assigned: emorley)
References
Details
Attachments
(1 file)
Today on IRC Rob was hitting 403s submitting data to stage using treeherder-client, however the server response (which would have made the issue easier to debug) wasn't output in the log, since the script being used hadn't set up a logger:
https://gist.github.com/rwood-moz/009b6fbde4ef901f22df
We should mention setting up logging briefly in the client docs to make this harder to forget, and also mention using the debug log level to expose the additional body/headers info that bug 1229022 will soon be making debug-only.
Comment 1•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Attachment #8757923 -
Flags: review?(wlachance)
Comment 2•9 years ago
|
||
Comment on attachment 8757923 [details] [review]
[treeherder] mozilla:python-client-logging-docs > mozilla:master
Great clarification.
Attachment #8757923 -
Flags: review?(wlachance) → review+
Comment 3•9 years ago
|
||
Commits pushed to master at https://github.com/mozilla/treeherder
https://github.com/mozilla/treeherder/commit/3ed821a01bfddb0738be966d847a8cc4dc5d9afe
Bug 1229025 - Docs: Fix the link to the Python Client section
https://github.com/mozilla/treeherder/commit/d5680e9796ec6120f4ce99f5d7183ced3edcb95f
Bug 1229025 - Docs: Capitalisation fixes
https://github.com/mozilla/treeherder/commit/c43ec94f0398d5ca6e75f213030946249b6f6827
Bug 1229025 - Docs: Add logging setup steps for the Python Client
Since several people have not had logging set up when trying to debug
issues using the client/API, so instead of a helpful error message (eg
reminding them to sync their clock for Hawk auth), they get:
`No handlers could be found for logger "thclient.client"`
Assignee | ||
Updated•9 years ago
|
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Updated•3 years ago
|
Component: Treeherder: Docs & Development → TreeHerder
You need to log in
before you can comment on or make changes to this bug.
Description
•