mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-03-14 05:01:24 +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:
|
||||
start = time.monotonic()
|
||||
|
||||
with self.buffered_logging("paperless.tasks"):
|
||||
with (
|
||||
self.buffered_logging("paperless.tasks"),
|
||||
self.buffered_logging("paperless.classifier"),
|
||||
):
|
||||
train_classifier(
|
||||
scheduled=False,
|
||||
status_callback=lambda msg: self.console.print(f" {msg}"),
|
||||
|
||||
Reference in New Issue
Block a user