Add register service log
authoryoubowu <wu.youbo@zte.com.cn>
Thu, 9 Mar 2017 07:12:50 +0000 (15:12 +0800)
committer6092002067 <wu.youbo@zte.com.cn>
Thu, 9 Mar 2017 07:12:50 +0000 (15:12 +0800)
Issue-ID:HOLMES-50

Change-Id: I657efaa043a52bee2725d104bbeb22b9349b7f03
Signed-off-by: youbowu <wu.youbo@zte.com.cn>
holmes-actions/src/main/java/org/openo/holmes/common/utils/MSBRegisterUtil.java

index 49dff92..ee77be3 100644 (file)
@@ -55,7 +55,8 @@ public class MSBRegisterUtil {
                 log.info("Registration successful service to the bus :" + response.getEntity());\r
                 return true;\r
             } else {\r
-                log.warn("Registering the service to the bus failure");\r
+                log.warn("Registering the service to the bus failure:"+response.getStatusLine().getStatusCode()+" "+\r
+                response.getStatusLine().getReasonPhrase()+response.getStatusLine().getProtocolVersion());\r
                 return false;\r
             }\r
         } finally {\r