Skip to content

Commit 97547cc

Browse files
committed
JFPrintServer : log exception
1 parent 8286348 commit 97547cc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/javaforce/print/JFPrintServer.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,9 @@ public void doPost(WebRequest req, WebResponse res) {
140140
res.write(("jobid:" + jobid).getBytes());
141141
cleanJobs();
142142
} catch (Exception e) {
143-
try {res.write(e.toString().getBytes());} catch (Exception e2) {}
143+
String ex = e.toString();
144+
try {res.write(ex.getBytes());} catch (Exception e2) {}
145+
JFLog.log(ex);
144146
}
145147
}
146148

0 commit comments

Comments
 (0)