mirror of
https://github.com/Seldaek/monolog.git
synced 2025-02-24 06:52:34 +01:00
removed duplicated call to newrelic_name_transaction()
This commit is contained in:
parent
e6e2457c55
commit
fe6e40675a
@ -77,6 +77,7 @@ class NewRelicHandler extends AbstractProcessingHandler
|
|||||||
|
|
||||||
if ($transactionName = $this->getTransactionName($record['context'])) {
|
if ($transactionName = $this->getTransactionName($record['context'])) {
|
||||||
$this->setNewRelicTransactionName($transactionName);
|
$this->setNewRelicTransactionName($transactionName);
|
||||||
|
unset($record['context']['transaction_name']);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($record['context']['exception']) && $record['context']['exception'] instanceof \Exception) {
|
if (isset($record['context']['exception']) && $record['context']['exception'] instanceof \Exception) {
|
||||||
@ -86,11 +87,6 @@ class NewRelicHandler extends AbstractProcessingHandler
|
|||||||
newrelic_notice_error($record['message']);
|
newrelic_notice_error($record['message']);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($record['context']['transaction_name'])) {
|
|
||||||
newrelic_name_transaction($record['context']['transaction_name']);
|
|
||||||
unset($record['context']['transaction_name']);
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach ($record['context'] as $key => $parameter) {
|
foreach ($record['context'] as $key => $parameter) {
|
||||||
if (is_array($parameter) && $this->explodeArrays) {
|
if (is_array($parameter) && $this->explodeArrays) {
|
||||||
foreach ($parameter as $paramKey => $paramValue) {
|
foreach ($parameter as $paramKey => $paramValue) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user