Skip to content

Commit 1e09138

Browse files
authored
Stack driver fix: respect the defined processors (#36591)
This update fixes the issue: laravel/ideas#1735
1 parent c67a685 commit 1e09138

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Illuminate/Log/LogManager.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,12 +244,16 @@ protected function createStackDriver(array $config)
244244
$handlers = collect($config['channels'])->flatMap(function ($channel) {
245245
return $this->channel($channel)->getHandlers();
246246
})->all();
247+
248+
$processors = collect($config['channels'])->flatMap(function ($channel) {
249+
return $this->channel($channel)->getProcessors();
250+
})->all();
247251

248252
if ($config['ignore_exceptions'] ?? false) {
249253
$handlers = [new WhatFailureGroupHandler($handlers)];
250254
}
251255

252-
return new Monolog($this->parseChannel($config), $handlers);
256+
return new Monolog($this->parseChannel($config), $handlers, $processors);
253257
}
254258

255259
/**

0 commit comments

Comments
 (0)