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
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
Download
Patches
Plain diff
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
Olivier Briat
requested to merge
issue/simple_cron-3412246:3412246-logging-use-inconsistant
into
1.1.x
1 year ago
Overview
0
Commits
3
Pipelines
1
Changes
2
Expand
Closes
#3412246
0
0
Merge request reports
Compare
1.1.x
version 2
e51adcce
5 months ago
version 1
14bcc8cf
1 year ago
1.1.x (base)
and
latest version
latest version
99a4dd80
3 commits,
4 months ago
version 2
e51adcce
2 commits,
5 months ago
version 1
14bcc8cf
1 commit,
1 year ago
2 files
+
19
−
6
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
src/Commands/SimpleCronCommands.php
+
4
−
1
Options
@@ -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