|
@@ -69,8 +69,8 @@ |
|
|
block discarded – undo |
|
69
|
69
|
public function write(\core\event\base $event) { |
|
70
|
70
|
$curl = new \curl(); |
|
71
|
71
|
$url = $this->get_config('fluentd_url', 'http://localhost') . ':' . |
|
72
|
|
- $this->get_config('fluentd_port', 8888) . '/' . |
|
73
|
|
- $this->get_config('fluentd_tag', 'fluentd.moodle') . '/?time='.$event->timecreated; |
|
|
72
|
+ $this->get_config('fluentd_port', 8888) . '/' . |
|
|
73
|
+ $this->get_config('fluentd_tag', 'fluentd.moodle') . '/?time='.$event->timecreated; |
|
74
|
74
|
$curl->post($url, 'json='.json_encode((array)$event)); |
|
75
|
75
|
} |
|
76
|
76
|
|
Please login to merge, or discard this patch.