diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-06-16 10:41:30 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-06-16 10:41:30 +0300 |
commit | 6a6f58ade83db5e6b8cf91c89af0c368180e9229 (patch) | |
tree | 010c3360a02c06551393a072fcb0c3f8ddef720d /lib/BackgroundJob | |
parent | 5a84b669813755d2d23588d7e6d8899a8b30fa58 (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.php | 5 |
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(), |