mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-10 15:14:14 +02:00
LogglyHandler: remove reundant tag assignment and PHP 5.4 specific syntax.
This commit is contained in:
@@ -28,7 +28,6 @@ class LogglyHandler extends AbstractProcessingHandler
|
|||||||
public function __construct($token, $level = Logger::DEBUG, $bubble = true)
|
public function __construct($token, $level = Logger::DEBUG, $bubble = true)
|
||||||
{
|
{
|
||||||
$this->token = $token;
|
$this->token = $token;
|
||||||
$this->tag = $tag;
|
|
||||||
|
|
||||||
parent::__construct($level, $bubble);
|
parent::__construct($level, $bubble);
|
||||||
}
|
}
|
||||||
@@ -50,7 +49,7 @@ class LogglyHandler extends AbstractProcessingHandler
|
|||||||
curl_setopt($ch, CURLOPT_URL, $url);
|
curl_setopt($ch, CURLOPT_URL, $url);
|
||||||
curl_setopt($ch, CURLOPT_POST, true);
|
curl_setopt($ch, CURLOPT_POST, true);
|
||||||
curl_setopt($ch, CURLOPT_POSTFIELDS, $record["formatted"]);
|
curl_setopt($ch, CURLOPT_POSTFIELDS, $record["formatted"]);
|
||||||
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: text/plain']);
|
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
|
||||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||||
|
|
||||||
curl_exec($ch);
|
curl_exec($ch);
|
||||||
|
Reference in New Issue
Block a user