feat: improve 'logger' field from logger

This commit is contained in:
Julien Neuhart
2021-12-08 15:41:08 +01:00
parent 8b8a02b68c
commit f376cd5ab1
3 changed files with 12 additions and 5 deletions

View File

@@ -355,7 +355,7 @@ func (mod Chromium) Routes() ([]api.Route, error) {
// drastically. In such a scenario, the given context may also be done before
// the end of the conversion.
func (mod Chromium) PDF(ctx context.Context, logger *zap.Logger, URL, outputPath string, options Options) error {
debug := debugLogger{logger: logger.Named("chromium.debug")}
debug := debugLogger{logger: logger.Named("browser")}
userProfileDirPath := gotenberg.NewDirPath()
args := append(chromedp.DefaultExecAllocatorOptions[:],