Commit 86e75e5d authored by 张辰's avatar 张辰

add log to genPdf

parent cbc9bbbc
...@@ -5,6 +5,7 @@ import lombok.extern.slf4j.Slf4j; ...@@ -5,6 +5,7 @@ import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.BeanFactory; import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.sleuth.instrument.async.LazyTraceAsyncTaskExecutor; import org.springframework.cloud.sleuth.instrument.async.LazyTraceAsyncTaskExecutor;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor; import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
......
...@@ -24,6 +24,7 @@ public class PagePdfGenUtils { ...@@ -24,6 +24,7 @@ public class PagePdfGenUtils {
argList.add("--no-sandbox"); argList.add("--no-sandbox");
argList.add("--disable-setuid-sandbox"); argList.add("--disable-setuid-sandbox");
argList.add("--enable-logging=stderr --v=1 > /usr/src/myapp/log.txt 2>&1");
Browser browser = Puppeteer.launch(options); Browser browser = Puppeteer.launch(options);
Page page = browser.newPage(); Page page = browser.newPage();
page.goTo(url); page.goTo(url);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment