mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-16 20:32:13 +01:00
feat(libreoffice): add high verbosity if debug log level
This commit is contained in:
@@ -159,6 +159,11 @@ func (mod Unoconv) PDF(ctx context.Context, logger *zap.Logger, inputPath, outpu
|
|||||||
"pdf",
|
"pdf",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
checkedEntry := logger.Check(zap.DebugLevel, "check for debug level before setting high verbosity")
|
||||||
|
if checkedEntry != nil {
|
||||||
|
args = append(args, "-vvv")
|
||||||
|
}
|
||||||
|
|
||||||
if options.Landscape {
|
if options.Landscape {
|
||||||
args = append(args, "--printer", "PaperOrientation=landscape")
|
args = append(args, "--printer", "PaperOrientation=landscape")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user