Skip to content

Commit

Permalink
feat: adds loggable
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadilipkolli committed Sep 12, 2023
1 parent 471282b commit 4db2632
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Licensed under MIT License Copyright (c) 2021-2023 Raja Kolli.

package com.example.catalogservice.services;

import com.example.catalogservice.config.logging.Loggable;
import com.example.catalogservice.entities.Product;
import com.example.catalogservice.exception.ProductNotFoundException;
import com.example.catalogservice.mapper.ProductMapper;
Expand All @@ -28,6 +29,7 @@ Licensed under MIT License Copyright (c) 2021-2023 Raja Kolli.
@Slf4j
@Transactional
@RequiredArgsConstructor
@Loggable
public class ProductService {

private final ProductRepository productRepository;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Licensed under MIT License Copyright (c) 2021-2023 Raja Kolli.

package com.example.catalogservice.web.controllers;

import com.example.catalogservice.config.logging.Loggable;
import com.example.catalogservice.entities.Product;
import com.example.catalogservice.services.ProductService;
import com.example.catalogservice.utils.AppConstants;
Expand All @@ -30,6 +31,7 @@ Licensed under MIT License Copyright (c) 2021-2023 Raja Kolli.
@RestController
@RequestMapping("/api/catalog")
@RequiredArgsConstructor
@Loggable
public class ProductController {

private final ProductService productService;
Expand Down

0 comments on commit 4db2632

Please sign in to comment.