Merge "Re-enable stacktracing when --debug is used"

This commit is contained in:
Jenkins
2016-04-18 17:04:57 +00:00
committed by Gerrit Code Review
3 changed files with 49 additions and 12 deletions
+8
View File
@@ -467,6 +467,14 @@ def endpoint_version_from_url(endpoint, default_version=None):
return None, default_version
def debug_enabled(argv):
if bool(env('GLANCECLIENT_DEBUG')) is True:
return True
if '--debug' in argv or '-d' in argv:
return True
return False
class IterableWithLength(object):
def __init__(self, iterable, length):
self.iterable = iterable