Skip to content

Commit bdc4ffc

Browse files
author
Anthony Xu
committed
add more log for creating XS pool network
1 parent 503eeb8 commit bdc4ffc

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4127,8 +4127,12 @@ protected String generateTimeStamp() {
41274127

41284128
protected Pair<Long, Integer> parseTimestamp(String timeStampStr) {
41294129
String[] tokens = timeStampStr.split("-");
4130-
assert (tokens.length == 3) : "It's our timestamp but it doesn't fit our format: " + timeStampStr;
4130+
if (tokens.length != 3) {
4131+
s_logger.debug("timeStamp in network has wrong pattern: " + timeStampStr);
4132+
return null;
4133+
}
41314134
if (!tokens[0].equals("CsCreateTime")) {
4135+
s_logger.debug("timeStamp in network doesn't start with CsCreateTime: " + timeStampStr);
41324136
return null;
41334137
}
41344138
return new Pair<Long, Integer>(Long.parseLong(tokens[1]), Integer.parseInt(tokens[2]));

0 commit comments

Comments
 (0)