We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a5376d1 + 13611a1 commit 7e64574Copy full SHA for 7e64574
1 file changed
src/Tasker2/Runner.php
@@ -107,6 +107,9 @@ public function clearProfilerData()
107
108
public function registerProfilerTicker(\G4\Profiler\Ticker\TickerAbstract $profiler)
109
{
110
+ if (!$this->profiler instanceof Profiler) {
111
+ return $this;
112
+ }
113
$this->profiler->addProfiler($profiler);
114
return $this;
115
}
@@ -207,8 +210,10 @@ private function logTaskStart()
207
210
208
211
private function logTaskExecution()
209
212
- if ($this->logger !== null) {
213
+ if ($this->profiler) {
214
$this->taskerExecution->setProfiler($this->profiler);
215
216
+ if ($this->logger !== null) {
217
$this->logger->log($this->taskerExecution);
218
219
if ($this->profiler) {
0 commit comments