Skip to content

Commit 414cc6e

Browse files
Apply suggestions from code review
Co-authored-by: Suresh Kumar Anaparti <[email protected]>
1 parent 4fc63f9 commit 414cc6e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

engine/schema/src/main/java/com/cloud/projects/dao/ProjectAccountDaoImpl.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,9 @@ public void removeUserFromProjects(long userId) {
200200
sc.setParameters("userId", userId);
201201

202202
int removedCount = remove(sc);
203-
s_logger.debug(String.format("Removed user [%s] from %s project(s).", userId, count));
203+
if (removedCount > 0) {
204+
s_logger.debug(String.format("Removed user [%s] from %s project(s).", userId, removedCount));
205+
}
204206
}
205207

206208
@Override

0 commit comments

Comments
 (0)