Skip to content

Commit

Permalink
ログ出力のフォーマットが崩れている部分の修正
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjiyoshid-a committed Jan 6, 2025
1 parent ae31f26 commit 352b632
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,8 @@ public class AssetApplicationService {
*/
public AssetResourceInfo getAssetResourceInfo(String assetCode) throws AssetNotFoundException {

apLog
.debug(messages.getMessage(MessageIdConstants.D_ASSET_GET_ASSET,
new Object[] { assetCode },
Locale.getDefault()));
apLog.debug(
messages.getMessage(MessageIdConstants.D_ASSET_GET_ASSET, new Object[] { assetCode }, Locale.getDefault()));

Asset asset = this.repository.findByAssetCode(assetCode)
.orElseThrow(() -> new AssetNotFoundException(assetCode));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,9 +270,7 @@ public int countCatalogItems(long brandId, long categoryId) {
*/
public List<CatalogBrand> getBrands() {

apLog.debug(messages.getMessage(MessageIdConstants.D_CATALOG_GET_BRANDS,
new Object[] {},
Locale.getDefault()));
apLog.debug(messages.getMessage(MessageIdConstants.D_CATALOG_GET_BRANDS, new Object[] {}, Locale.getDefault()));

return this.brandRepository.getAll();
}
Expand All @@ -284,9 +282,7 @@ public List<CatalogBrand> getBrands() {
*/
public List<CatalogCategory> getCategories() {

apLog.debug(messages.getMessage(MessageIdConstants.D_CATALOG_GET_CATEGORIES,
new Object[] {},
Locale.getDefault()));
apLog.debug(messages.getMessage(MessageIdConstants.D_CATALOG_GET_CATEGORIES, new Object[] {}, Locale.getDefault()));

return this.categoryRepository.getAll();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,8 @@ public class OrderApplicationService {
*/
public Order getOrder(long orderId, String buyerId) throws OrderNotFoundException {

apLog.debug(
messages.getMessage(MessageIdConstants.D_ORDER_GET_ORDER,
new Object[] { orderId, buyerId },
Locale.getDefault()));
apLog.debug(messages.getMessage(MessageIdConstants.D_ORDER_GET_ORDER, new Object[] { orderId, buyerId },
Locale.getDefault()));

Order order = this.orderRepository.findById(orderId)
.orElseThrow(() -> new OrderNotFoundException(null, orderId, buyerId));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ public void setQuantities(String buyerId, Map<Long, Integer> quantities)
throws CatalogNotFoundException, CatalogItemInBasketNotFoundException {

apLog.debug(messages.getMessage(MessageIdConstants.D_SHOPPING_SET_BASKET_ITEMS_QUANTITIES,
new Object[] { buyerId, quantities },
Locale.getDefault()));
new Object[] { buyerId, quantities }, Locale.getDefault()));

Basket basket = getOrCreateBasketForUser(buyerId);
// カタログリポジトリに存在しないカタログアイテムが指定されていないか確認
Expand Down Expand Up @@ -124,8 +123,8 @@ public void setQuantities(String buyerId, Map<Long, Integer> quantities)
*/
public BasketDetail getBasketDetail(String buyerId) {

apLog.debug(messages.getMessage(MessageIdConstants.D_SHOPPING_GET_BASKET_ITEMS,
new Object[] { buyerId }, Locale.getDefault()));
apLog.debug(messages.getMessage(MessageIdConstants.D_SHOPPING_GET_BASKET_ITEMS, new Object[] { buyerId },
Locale.getDefault()));

Basket basket = getOrCreateBasketForUser(buyerId);
List<Long> catalogItemIds = basket.getItems().stream()
Expand All @@ -146,8 +145,7 @@ public BasketDetail getBasketDetail(String buyerId) {
public Order checkout(String buyerId, ShipTo shipToAddress)
throws EmptyBasketOnCheckoutException {

apLog.debug(messages.getMessage(MessageIdConstants.D_SHOPPING_CHECKOUT,
new Object[] { buyerId, shipToAddress },
apLog.debug(messages.getMessage(MessageIdConstants.D_SHOPPING_CHECKOUT, new Object[] { buyerId, shipToAddress },
Locale.getDefault()));

Basket basket = getOrCreateBasketForUser(buyerId);
Expand Down

0 comments on commit 352b632

Please sign in to comment.