-
Notifications
You must be signed in to change notification settings - Fork 0
Better logging of token permission issues #67
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
Conversation
label_data = { | ||
"name": label, | ||
"description": "Feedback from a Docassemble Interview", | ||
"color": "002E60", | ||
} | ||
make_label_resp = requests.post( | ||
labels_url, data=json.dumps(label_data), headers=headers | ||
labels_url.rsplit("/", 1)[0], # POST to /labels (collection) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a huge fan of splitting the URL like this. I'm fine with just having two variables (one for labels_url
and one for single_label_url
above if you don't want to add to the url like it was.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm in support of improving logs, but have a few questions before we merge.
fixed a bug when feedback was caught as likely spam.
I didn't see this? The log message changed, but nothing here would affect the behavior, right?
Yes, in the event it is flagged as spam, there was a Python error (a,b = None should have been a = b = None) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
When user feedback is attempted, have a better log message for feedback.
Also cleaned up label authoring and fixed a bug when feedback was caught as likely spam.