Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-06-16 10:41:30 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-06-16 10:41:30 +0300
commit6a6f58ade83db5e6b8cf91c89af0c368180e9229 (patch)
tree010c3360a02c06551393a072fcb0c3f8ddef720d /lib/BackgroundJob
parent5a84b669813755d2d23588d7e6d8899a8b30fa58 (diff)
Make the importance classifier training more debuggable
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/BackgroundJob')
-rw-r--r--lib/BackgroundJob/TrainImportanceClassifierJob.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/BackgroundJob/TrainImportanceClassifierJob.php b/lib/BackgroundJob/TrainImportanceClassifierJob.php
index 16171e2a6..eaf7e5492 100644
--- a/lib/BackgroundJob/TrainImportanceClassifierJob.php
+++ b/lib/BackgroundJob/TrainImportanceClassifierJob.php
@@ -75,7 +75,10 @@ class TrainImportanceClassifierJob extends TimedJob {
}
try {
- $this->classifier->train($account);
+ $this->classifier->train(
+ $account,
+ $this->logger
+ );
} catch (Throwable $e) {
$this->logger->logException($e, [
'message' => 'Cron importance classifier training failed: ' . $e->getMessage(),