-
Notifications
You must be signed in to change notification settings - Fork 16
/
Magento_Cron-verbose-logs.patch
50 lines (43 loc) · 1.64 KB
/
Magento_Cron-verbose-logs.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
--- Observer/ProcessCronQueueObserver.orig.php 2021-01-07 21:56:58.000000000 +0300
+++ Observer/ProcessCronQueueObserver.php 2021-05-30 21:45:10.881000300 +0300
@@ -350,7 +350,7 @@
$this->eventManager->dispatch('cron_job_run', ['job_name' => 'cron/' . $groupId . '/' . $jobCode]);
try {
- $this->logger->info(sprintf('Cron Job %s is run', $jobCode));
+ //$this->logger->info(sprintf('Cron Job %s is run', $jobCode)); // patch
//phpcs:ignore Magento2.Functions.DiscouragedFunction
call_user_func_array($callback, [$schedule]);
} catch (\Throwable $e) {
@@ -384,13 +384,13 @@
)
);
- $this->logger->info(
- sprintf(
- 'Cron Job %s is successfully finished. Statistics: %s',
- $jobCode,
- $this->getProfilingStat($jobCode)
- )
- );
+// $this->logger->info(
+// sprintf(
+// 'Cron Job %s is successfully finished. Statistics: %s',
+// $jobCode,
+// $this->getProfilingStat($jobCode)
+// )
+// ); // patch
}
/**
@@ -577,7 +577,7 @@
}
if ($count) {
- $this->logger->info(sprintf('%d cron jobs were cleaned', $count));
+// $this->logger->info(sprintf('%d cron jobs were cleaned', $count)); // patch
}
}
@@ -692,7 +692,7 @@
]
);
- $this->logger->info(sprintf('%d cron jobs were cleaned', $count));
+// $this->logger->info(sprintf('%d cron jobs were cleaned', $count)); // patch
}
}