mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-01-14 15:53:36 +01:00
corrected logging problem
Former-commit-id: 68bad221b1352b6cfe271f5089ea0f70197dc84c
This commit is contained in:
@@ -44,7 +44,8 @@ public class MySink implements Sink {
|
||||
try {
|
||||
out.write(tag);
|
||||
} catch (IOException ex) {
|
||||
Logger.getLogger(MySink.class.getName()).log(Level.SEVERE, null, ex);
|
||||
Logger.getLogger(MySink.class.getName()).log(Level.SEVERE, "Error writing a tag; unable to generate the report");
|
||||
Logger.getLogger(MySink.class.getName()).log(Level.FINE, null, ex);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -393,7 +394,8 @@ public class MySink implements Sink {
|
||||
//TODO add HTML Encoding - or figure out how to get the doxia xhtmlsink to work.
|
||||
out.write(text);
|
||||
} catch (IOException ex) {
|
||||
Logger.getLogger(MySink.class.getName()).log(Level.SEVERE, null, ex);
|
||||
Logger.getLogger(MySink.class.getName()).log(Level.SEVERE, "Error writing a text; unable to generate the report");
|
||||
Logger.getLogger(MySink.class.getName()).log(Level.FINE, null, ex);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -401,7 +403,8 @@ public class MySink implements Sink {
|
||||
try {
|
||||
out.write(text);
|
||||
} catch (IOException ex) {
|
||||
Logger.getLogger(MySink.class.getName()).log(Level.SEVERE, null, ex);
|
||||
Logger.getLogger(MySink.class.getName()).log(Level.SEVERE, "Error writing raw text; unable to generate the report");
|
||||
Logger.getLogger(MySink.class.getName()).log(Level.FINE, null, ex);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user