Skip to content

Commit afb7049

Browse files
committed
print OK after each successful process
1 parent bd588f5 commit afb7049

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main/java/uk/ac/ed/epcc/ctp_anon_cli/SmiCtpProcessor.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,10 @@ public void anonymizeImpl(File inFile, File outFile) throws Exception {
129129
}
130130

131131
// Structured Reports have an additional anonymisation step
132-
if (!isSR || _srAnonTool == null) return;
132+
if (!isSR || _srAnonTool == null) {
133+
System.out.println("OK");
134+
return;
135+
}
133136

134137
String commandArray[] = {
135138
_srAnonTool.getAbsolutePath(),
@@ -165,6 +168,8 @@ public void anonymizeImpl(File inFile, File outFile) throws Exception {
165168
"SRAnonTool exited with " + rc + " and stderr '" + stderr + "'"
166169
);
167170
}
171+
172+
System.out.println("OK");
168173
}
169174

170175
private File DoPixelAnon(File inFile, File outFile, DicomObject dObj)

0 commit comments

Comments
 (0)