aurora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wfar...@apache.org
Subject incubator-aurora git commit: Suppress empty RPC response logging from the client.
Date Wed, 04 Mar 2015 02:28:22 GMT
Repository: incubator-aurora
Updated Branches:
  refs/heads/master 270faf799 -> 58ab45e37


Suppress empty RPC response logging from the client.

Reviewed at https://reviews.apache.org/r/31714/


Project: http://git-wip-us.apache.org/repos/asf/incubator-aurora/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-aurora/commit/58ab45e3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-aurora/tree/58ab45e3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-aurora/diff/58ab45e3

Branch: refs/heads/master
Commit: 58ab45e3749e7e366120ce6deb3e5f6a22f68bd5
Parents: 270faf7
Author: Bill Farner <wfarner@apache.org>
Authored: Tue Mar 3 18:27:10 2015 -0800
Committer: Bill Farner <wfarner@apache.org>
Committed: Tue Mar 3 18:27:10 2015 -0800

----------------------------------------------------------------------
 src/main/python/apache/aurora/client/cli/context.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/58ab45e3/src/main/python/apache/aurora/client/cli/context.py
----------------------------------------------------------------------
diff --git a/src/main/python/apache/aurora/client/cli/context.py b/src/main/python/apache/aurora/client/cli/context.py
index d3113ff..e75c6cb 100644
--- a/src/main/python/apache/aurora/client/cli/context.py
+++ b/src/main/python/apache/aurora/client/cli/context.py
@@ -109,7 +109,9 @@ class AuroraCommandContext(Context):
 
   def log_response_and_raise(self, resp, err_code=EXIT_API_ERROR, err_msg="Command failure:"):
     if resp.responseCode == ResponseCode.OK:
-      logging.info(combine_messages(resp))
+      msg = combine_messages(resp)
+      if msg:
+        logging.info(msg)
     else:
       self.print_err(err_msg)
       self.print_err("\t%s" % combine_messages(resp))


Mime
View raw message