|
@@ -96,6 +96,7 @@ public class ScreenshotUtil {
|
|
|
scheduleLogger.info("Cronjob({}) thread({}) for screenshot start, type:{}, id:{}, total:{}", jobId, index.get(), content.getDesc(), content.getCId(), contentsSize);
|
|
|
try {
|
|
|
File image = doScreenshot(jobId, content.getUrl(), imageWidth);
|
|
|
+ System.out.println("生成的图片>>>>" + image.getName());
|
|
|
content.setContent(image);
|
|
|
} catch (Exception e) {
|
|
|
scheduleLogger.error("Cronjob({}) thread( {}) screenshot error", jobId, index.get());
|
|
@@ -227,7 +228,7 @@ public class ScreenshotUtil {
|
|
|
|
|
|
|
|
|
File file = new File(CHROME_DRIVER_PATH);
|
|
|
- System.out.println("********************"+file.getName()+"********************");
|
|
|
+ System.out.println(file.getName()+"********************"+file.canExecute());
|
|
|
if (!file.canExecute()) {
|
|
|
if (!file.setExecutable(true)) {
|
|
|
throw new ExecutionException(new Exception(CHROME_DRIVER_PATH + " is not executable!"));
|