-
Notifications
You must be signed in to change notification settings - Fork 27
Patched _proxy_log to be more useful #110
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
base: master
Are you sure you want to change the base?
Conversation
|
Hi, |
|
Sure! This patch is basically to make error messages more easy to debug bad TypeError: not all arguments converted during string formatting
# or
TypeError: not enough arguments for format stringwhich unfortunately, is find for where error occured but terrible for figuring out how or what caused the error without jumping into a debugger to figure out the exact values of
|
To handle point 1. in shotgunsoftware#110 (comment)
|
Because these are proxy messages, they tend to hide which Shotgun app/engine/framework is causing the error. I guess you could also just add the full stack trace to after |
72307e7 to
bec530f
Compare
To handle point 1. in shotgunsoftware#110 (comment)
bec530f to
3f4c2b1
Compare
3f4c2b1 to
66be354
Compare
66be354 to
3fa2524
Compare
Problem
If proxy messages fail to log, the exception message logged does very little to help debug erroneous message formatting i.e. typically just be something like:
which unfortunately, is find for where error occured but terrible for figuring out how or what caused the error without jumping into a debugger to figure out the exact values of
msgor*args:When
msgparameter in is not a string and gets erroneously expandedBad amounts of
*argspassed in for the final, "PROXY" pre-pendedmsgBecause these are proxy messages, they tend to hide which Shotgun app/engine/framework is causing the error.
Changed
Fixed
[PROXY]usingstr.formatinstead of%to avoid potential expansion ofmsgargsto be*argsso when single, iterable argument is passed in, it doesn't get unnecessarily expanded e.g. adict