Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
Nextcloud mail - PostGuard
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Laura Kolijn
Nextcloud mail - PostGuard
Commits
68e21869
Unverified
Commit
68e21869
authored
4 years ago
by
Christoph Wurst
Browse files
Options
Downloads
Patches
Plain Diff
Use the PSR logger for the importance training job
Signed-off-by:
Christoph Wurst
<
christoph@winzerhof-wurst.at
>
parent
8477d8f3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/BackgroundJob/TrainImportanceClassifierJob.php
+5
-5
5 additions, 5 deletions
lib/BackgroundJob/TrainImportanceClassifierJob.php
with
5 additions
and
5 deletions
lib/BackgroundJob/TrainImportanceClassifierJob.php
+
5
−
5
View file @
68e21869
...
...
@@ -31,7 +31,7 @@ use OCP\AppFramework\Db\DoesNotExistException;
use
OCP\AppFramework\Utility\ITimeFactory
;
use
OCP\BackgroundJob\IJobList
;
use
OCP\BackgroundJob\TimedJob
;
use
OCP\ILogger
;
use
Psr\Log\LoggerInterface
;
use
Throwable
;
class
TrainImportanceClassifierJob
extends
TimedJob
{
...
...
@@ -45,14 +45,14 @@ class TrainImportanceClassifierJob extends TimedJob {
/** @var IJobList */
private
$jobList
;
/** @var
I
Logger */
/** @var Logger
Interface
*/
private
$logger
;
public
function
__construct
(
ITimeFactory
$time
,
AccountService
$accountService
,
ImportanceClassifier
$classifier
,
IJobList
$jobList
,
I
Logger
$logger
)
{
Logger
Interface
$logger
)
{
parent
::
__construct
(
$time
);
$this
->
accountService
=
$accountService
;
...
...
@@ -80,8 +80,8 @@ class TrainImportanceClassifierJob extends TimedJob {
$this
->
logger
);
}
catch
(
Throwable
$e
)
{
$this
->
logger
->
logException
(
$e
,
[
'
message'
=>
'Cron importance classifier training failed: '
.
$e
->
getMessage
()
,
$this
->
logger
->
error
(
'Cron importance classifier training failed: '
.
$e
->
getMessage
()
,
[
'
exception'
=>
$e
,
]);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment