增加打印日志
This commit is contained in:
parent
280747ad91
commit
ef860b32f3
|
|
@ -15,19 +15,19 @@ public class HtmlToPdfInterceptor extends Thread {
|
|||
}
|
||||
|
||||
public void run() {
|
||||
log.error("==============================1");
|
||||
log.info("==============================1");
|
||||
try {
|
||||
InputStreamReader isr = new InputStreamReader(is, "utf-8");
|
||||
BufferedReader br = new BufferedReader(isr);
|
||||
String line = null;
|
||||
while ((line = br.readLine()) != null) {
|
||||
log.error(line.toString());
|
||||
log.info(line.toString());
|
||||
// System.out.println(line.toString()); // 输出内容
|
||||
}
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
log.error("==============================2");
|
||||
log.info("==============================2");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ public class WKHtmlToPdfUtil {
|
|||
* @return 转换成功返回true
|
||||
*/
|
||||
public static boolean convert(String srcPath, String destPath) {
|
||||
log.info("WKHtmlToPdfUtil============================",srcPath,destPath);
|
||||
File file = new File(destPath);
|
||||
File parent = file.getParentFile();
|
||||
// 如果pdf保存路径不存在,则创建路径
|
||||
|
|
@ -70,7 +71,7 @@ public class WKHtmlToPdfUtil {
|
|||
log.error("Convert to pdf error", e);
|
||||
result = false;
|
||||
}
|
||||
|
||||
log.info("WKHtmlToPdfUtil============================");
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue