mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-06 07:05:59 +00:00
Change some log levels of item processing task
This commit is contained in:
parent
938866fb84
commit
4e49c78e72
@ -62,7 +62,7 @@ object ConvertPdf {
|
|||||||
Conversion.create[F](cfg, sanitizeHtml, ctx.blocker, ctx.logger).use { conv =>
|
Conversion.create[F](cfg, sanitizeHtml, ctx.blocker, ctx.logger).use { conv =>
|
||||||
mime match {
|
mime match {
|
||||||
case mt if mt.baseEqual(Mimetype.`application/pdf`) =>
|
case mt if mt.baseEqual(Mimetype.`application/pdf`) =>
|
||||||
ctx.logger.info("Not going to convert a PDF file into a PDF.") *>
|
ctx.logger.debug(s"Not going to convert a PDF file ${ra.name} into a PDF.") *>
|
||||||
(ra, None: Option[RAttachmentMeta]).pure[F]
|
(ra, None: Option[RAttachmentMeta]).pure[F]
|
||||||
|
|
||||||
case _ =>
|
case _ =>
|
||||||
|
@ -60,7 +60,7 @@ object TextExtraction {
|
|||||||
rm => rm.setContentIfEmpty(txt.map(_.trim).filter(_.nonEmpty))
|
rm => rm.setContentIfEmpty(txt.map(_.trim).filter(_.nonEmpty))
|
||||||
)
|
)
|
||||||
est <- dst
|
est <- dst
|
||||||
_ <- ctx.logger.debug(
|
_ <- ctx.logger.info(
|
||||||
s"Extracting text for attachment ${stripAttachmentName(ra)} finished in ${est.formatExact}"
|
s"Extracting text for attachment ${stripAttachmentName(ra)} finished in ${est.formatExact}"
|
||||||
)
|
)
|
||||||
} yield meta
|
} yield meta
|
||||||
|
Loading…
x
Reference in New Issue
Block a user