Skip to content

Commit

Permalink
chore: add log
Browse files Browse the repository at this point in the history
  • Loading branch information
Kang1221 committed Sep 11, 2024
1 parent ec8929a commit 32fe2b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/co/orange/ddanzi/service/SchedulerService.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;

@Slf4j
@Service
public class SchedulerService {
Expand All @@ -22,7 +24,7 @@ public class SchedulerService {
@Transactional
@Scheduled(cron = "0 0 0 * * ?")
public void updateExpiredItems() {
log.info("Updating expired items");
log.info("Updating expired items, time : ", LocalDateTime.now());
itemService.updateExpiredItems();
}

Expand Down

0 comments on commit 32fe2b7

Please sign in to comment.