Skip to content

Commit

Permalink
Adding logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Sonali Shakya authored and Sonali Shakya committed Dec 12, 2024
1 parent 913eef0 commit 9588d91
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,17 @@
import com.ondc.yugabyte_integration.Entity.SessionDetails;
import com.ondc.yugabyte_integration.Repository.SessionDetailsRepository;
import jakarta.transaction.Transactional;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Optional;

@Service
public class SessionDetailsService {

private final Logger Log = LoggerFactory.getLogger(SessionDetailsService.class);

private final SessionDetailsRepository sessionDetailsRepository;

public SessionDetailsService(SessionDetailsRepository sessionDetailsRepository) {
Expand All @@ -30,6 +34,7 @@ public boolean checkSessionById(String sessionId) {

@Transactional
public SessionDetails createSession(SessionDetails sessionDetails) {
Log.info("Creating session - {}", sessionDetails);
return sessionDetailsRepository.save(sessionDetails);
}

Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 9588d91

Please sign in to comment.