Skip to content

Commit a833eff

Browse files
author
Nikita Konev
committed
log branch
1 parent 707691f commit a833eff

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/kotlin/com/example/web/jdbc/web/jdbc/Application.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ class AppRunner(private val subjectRepository: SubjectRepository,
4141
val createdBranch2: Branch = branchRepository.save(branch2)
4242
logger.info("Created second branch {}", createdBranch2)
4343

44+
val findById = branchRepository.findById(createdBranch1.branchId)
45+
logger.info("Found --- first branch {}", findById)
46+
4447
logger.info("Deleting first branch {}", createdBranch1)
4548
branchRepository.delete(createdBranch1)
4649
logger.info("Searching for first branch {}", branchRepository.existsById(createdBranch1.branchId))

0 commit comments

Comments
 (0)