only log verbose HTTP output while testing

This commit is contained in:
Jude Nelson
2018-05-03 18:14:11 -04:00
parent 07ebbbb024
commit 9da2642075

View File

@@ -1567,7 +1567,8 @@ class BlockstackAPIEndpointHandler(SimpleHTTPRequestHandler):
route_method = route_info['method']
route = route_info['route']
log.debug("\nfull path: {}\nmethod: {}\npath: {}\nqs: {}\nheaders:\n{}\n".format(self.path, method_name, path_info['path'], qs_values, '\n'.join( '{}: {}'.format(k, v) for (k, v) in self.headers.items() )))
if BLOCKSTACK_TEST:
log.debug("\nfull path: {}\nmethod: {}\npath: {}\nqs: {}\nheaders:\n{}\n".format(self.path, method_name, path_info['path'], qs_values, '\n'.join( '{}: {}'.format(k, v) for (k, v) in self.headers.items() )))
try:
return route_method( path_info, *route_args )