Skip to content

Commit 35bc274

Browse files
committed
SeriesInfoExtractorServiceImpl.extractQuantity(): add more logging.
Should be in 3651fd9 commit. Addressed to #781 No functional changes.
1 parent ccd457e commit 35bc274

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/main/java/ru/mystamps/web/service/SeriesInfoExtractorServiceImpl.java

+8-1
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,17 @@ public Integer extractQuantity(String fragment) {
157157
return null;
158158
}
159159

160+
log.debug("Determining quantity from a fragment: '{}'", fragment);
161+
160162
Matcher matcher = NUMBER_OF_STAMPS_REGEXP.matcher(fragment);
161163
if (matcher.find()) {
162-
return Integer.valueOf(matcher.group(1));
164+
String quantity = matcher.group(1);
165+
log.debug("Quantity is {}", quantity);
166+
return Integer.valueOf(quantity);
163167
}
168+
169+
log.debug("Could not extract quantity from a fragment");
170+
164171
return null;
165172
}
166173

0 commit comments

Comments
 (0)