Skip to content

Commit

Permalink
Change the log message
Browse files Browse the repository at this point in the history
  • Loading branch information
t3t5u committed Aug 14, 2024
1 parent ae5a3c7 commit f876e47
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,11 @@ private Long getLoginCustomerId(String customerId)
throw new RuntimeException("login customer not found [customer id: " + customerId + "]");
}
if (loginCustomerIds.size() > 1) {
logger.warn("ambiguous login customers found [customer id: {}, login customer ids: {}]", customerId, loginCustomerIds.stream().map(Object::toString).collect(Collectors.joining(", ")));
logger.info("multiple login customers found [login customer ids: {}]", loginCustomerIds.stream().map(Object::toString).collect(Collectors.joining(", ")));
}
return loginCustomerIds.get(0);
Long loginCustomerId = loginCustomerIds.get(0);
logger.info("use this customer [customer id: {}, login customer id: {}] to login", customerId, loginCustomerId);
return loginCustomerId;
}

private List<Long> getLoginCustomerIds(String customerId)
Expand Down

0 comments on commit f876e47

Please sign in to comment.