We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c940d3 commit f822b19Copy full SHA for f822b19
src/main/java/ru/mystamps/web/service/CountryServiceImpl.java
@@ -185,11 +185,15 @@ public String suggestCountryForUser(Integer userId) {
185
}
186
187
slug = countryDao.findPopularCountryInCollection(userId);
188
- LOG.info(
189
- "Country {} has been suggested to user #{} as popular in his collection",
190
- slug,
191
- userId
192
- );
+ if (slug != null) {
+ LOG.info(
+ "Country {} has been suggested to user #{} as popular in his collection",
+ slug,
+ userId
193
+ );
194
+ }
195
+
196
+ LOG.info("Couldn't suggest a country for user #{}", userId);
197
198
return slug;
199
0 commit comments