mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-08-31 15:07:15 +00:00
Also capture the paperless.classifier log, in case of anything from there
This commit is contained in:
@@ -17,7 +17,10 @@ class Command(PaperlessCommand):
|
|||||||
def handle(self, *args, **options) -> None:
|
def handle(self, *args, **options) -> None:
|
||||||
start = time.monotonic()
|
start = time.monotonic()
|
||||||
|
|
||||||
with self.buffered_logging("paperless.tasks"):
|
with (
|
||||||
|
self.buffered_logging("paperless.tasks"),
|
||||||
|
self.buffered_logging("paperless.classifier"),
|
||||||
|
):
|
||||||
train_classifier(
|
train_classifier(
|
||||||
scheduled=False,
|
scheduled=False,
|
||||||
status_callback=lambda msg: self.console.print(f" {msg}"),
|
status_callback=lambda msg: self.console.print(f" {msg}"),
|
||||||
|
|||||||
Reference in New Issue
Block a user