mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-24 18:16:10 +02:00
CS fixes
This commit is contained in:
@@ -16,7 +16,7 @@ use Monolog\Logger;
|
||||
/**
|
||||
* Class to record a log on a NewRelic application.
|
||||
* Enabling New Relic High Security mode may prevent capture of useful information.
|
||||
*
|
||||
*
|
||||
* @see https://docs.newrelic.com/docs/agents/php-agent
|
||||
* @see https://docs.newrelic.com/docs/accounts-partnerships/accounts/security/high-security
|
||||
*/
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
|
||||
namespace Monolog\Handler;
|
||||
|
||||
|
||||
/**
|
||||
* Sampling handler
|
||||
*
|
||||
|
||||
@@ -157,11 +157,8 @@ class SlackHandler extends SocketHandler
|
||||
}
|
||||
|
||||
if ($this->includeExtra) {
|
||||
|
||||
if (!empty($record['extra'])) {
|
||||
|
||||
if ($this->useShortAttachment) {
|
||||
|
||||
$attachment['fields'][] = array(
|
||||
'title' => "Extra",
|
||||
'value' => $this->stringify($record['extra']),
|
||||
@@ -170,7 +167,7 @@ class SlackHandler extends SocketHandler
|
||||
} else {
|
||||
// Add all extra fields as individual fields in attachment
|
||||
foreach ($record['extra'] as $var => $val) {
|
||||
$attachment['fields'][] = array(
|
||||
$attachment['fields'][] = array(
|
||||
'title' => $var,
|
||||
'value' => $val,
|
||||
'short' => $this->useShortAttachment
|
||||
@@ -180,9 +177,7 @@ class SlackHandler extends SocketHandler
|
||||
}
|
||||
|
||||
if (!empty($record['context'])) {
|
||||
|
||||
if ($this->useShortAttachment) {
|
||||
|
||||
$attachment['fields'][] = array(
|
||||
'title' => "Context",
|
||||
'value' => $this->stringify($record['context']),
|
||||
@@ -191,7 +186,7 @@ class SlackHandler extends SocketHandler
|
||||
} else {
|
||||
// Add all context fields as individual fields in attachment
|
||||
foreach ($record['context'] as $var => $val) {
|
||||
$attachment['fields'][] = array(
|
||||
$attachment['fields'][] = array(
|
||||
'title' => $var,
|
||||
'value' => $val,
|
||||
'short' => $this->useShortAttachment
|
||||
|
||||
@@ -72,6 +72,7 @@ class Registry
|
||||
{
|
||||
if ($logger instanceof Logger) {
|
||||
$index = array_search($logger, self::$loggers, true);
|
||||
|
||||
return false !== $index;
|
||||
} else {
|
||||
return isset(self::$loggers[$logger]);
|
||||
|
||||
Reference in New Issue
Block a user