Skip to content

Commit 0322d03

Browse files
committed
minor fix and better logging
1 parent cfbb879 commit 0322d03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/ch/ethz/seb/sps/server/datalayer/dao/impl/ScreenshotDataLiveCacheDAOBatis.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,11 @@ private Long getLastScreenshotEntryId(String sessionUUID) {
161161
.build()
162162
.execute();
163163

164-
if (all != null) {
164+
if (all != null && !all.isEmpty()) {
165165
return all.get(all.size() - 1);
166166
}
167167

168-
log.warn("No screenshot entry found for session: {}", sessionUUID);
168+
log.info("No screenshot entry found for session: {}", sessionUUID);
169169
return null;
170170
} catch (Exception e) {
171171
log.error("Failed to get last screenshot entry for session: {} error: {}", sessionUUID, e.getMessage());

0 commit comments

Comments
 (0)