Cleanup of samples including adding flags to control logging.
diff --git a/apiclient/discovery.py b/apiclient/discovery.py
index cc31967..aabbade 100644
--- a/apiclient/discovery.py
+++ b/apiclient/discovery.py
@@ -114,6 +114,7 @@
   try:
     service = simplejson.loads(content)
   except ValueError, e:
+    logging.error('Failed to parse as JSON: ' + content)
     raise InvalidJsonError()
 
   fn = os.path.join(os.path.dirname(__file__), 'contrib',
diff --git a/apiclient/model.py b/apiclient/model.py
index 4ca91f4..1e5b862 100644
--- a/apiclient/model.py
+++ b/apiclient/model.py
@@ -22,7 +22,10 @@
 FLAGS = gflags.FLAGS
 
 gflags.DEFINE_boolean('dump_request_response', False,
-                     'Dump all http server requests and responses.')
+                     'Dump all http server requests and responses. '
+                     'Must use apiclient.model.LoggingJsonModel as '
+                     'the model.'
+                     )
 
 
 def _abstract():