Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simple_cron
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
simple_cron
Merge requests
!4
Always use job id for logging
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Open
Always use job id for logging
issue/simple_cron-3412246:3412246-logging-use-inconsistant
into
1.1.x
Overview
0
Commits
3
Pipelines
1
Changes
2
Open
Always use job id for logging
Olivier Briat
requested to merge
issue/simple_cron-3412246:3412246-logging-use-inconsistant
into
1.1.x
Jan 4, 2024
Overview
0
Commits
3
Pipelines
1
Changes
2
Closes
#3412246
0
0
Merge request reports
Compare
1.1.x
version 2
e51adcce
8 months ago
version 1
14bcc8cf
Jan 4, 2024
1.1.x (base)
and
latest version
latest version
99a4dd80
3 commits,
7 months ago
version 2
e51adcce
2 commits,
8 months ago
version 1
14bcc8cf
1 commit,
Jan 4, 2024
2 files
+
19
−
6
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
src/Commands/SimpleCronCommands.php
+
4
−
1
View file @ 99a4dd80
Edit in single-file editor
Open in Web IDE
Show full file
@@ -97,7 +97,10 @@ class SimpleCronCommands extends DrushCommands {
$status
=
$job
->
run
(
time
(),
$force
);
if
(
$status
)
{
$this
->
getLogger
(
'simple_cron'
)
->
notice
(
'Execution of cron job @job is completed.'
,
[
'@job'
=>
$job
->
id
()]);
$this
->
getLogger
(
'simple_cron'
)
->
notice
(
'Execution of cron job @label (@id) is completed.'
,
[
'@id'
=>
$job
->
id
(),
'@label'
=>
$job
->
label
(),
]);
}
else
{
$this
->
getLogger
(
'simple_cron'
)
->
error
(
'Execution of cron job @job failed.'
,
[
'@job'
=>
$job
->
id
()]);
Loading