diff options
author | youbowu <wu.youbo@zte.com.cn> | 2017-03-09 15:12:50 +0800 |
---|---|---|
committer | 6092002067 <wu.youbo@zte.com.cn> | 2017-03-09 15:12:50 +0800 |
commit | 7f9636fd1129bbc7e1a5d3fa96a48ecd73556449 (patch) | |
tree | 815f1a47cf88d12b7a6e74ebae138233897736dc /holmes-actions/src/main | |
parent | d55c83c257914112016a9205b6ed81b73116a42a (diff) |
Add register service log
Issue-ID:HOLMES-50
Change-Id: I657efaa043a52bee2725d104bbeb22b9349b7f03
Signed-off-by: youbowu <wu.youbo@zte.com.cn>
Diffstat (limited to 'holmes-actions/src/main')
-rw-r--r-- | holmes-actions/src/main/java/org/openo/holmes/common/utils/MSBRegisterUtil.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/holmes-actions/src/main/java/org/openo/holmes/common/utils/MSBRegisterUtil.java b/holmes-actions/src/main/java/org/openo/holmes/common/utils/MSBRegisterUtil.java index 49dff92..ee77be3 100644 --- a/holmes-actions/src/main/java/org/openo/holmes/common/utils/MSBRegisterUtil.java +++ b/holmes-actions/src/main/java/org/openo/holmes/common/utils/MSBRegisterUtil.java @@ -55,7 +55,8 @@ public class MSBRegisterUtil { log.info("Registration successful service to the bus :" + response.getEntity());
return true;
} else {
- log.warn("Registering the service to the bus failure");
+ log.warn("Registering the service to the bus failure:"+response.getStatusLine().getStatusCode()+" "+
+ response.getStatusLine().getReasonPhrase()+response.getStatusLine().getProtocolVersion());
return false;
}
} finally {
|