Skip to content

Commit e70babf

Browse files
author
Dominik Haßelkuss
committed
moved host to params
1 parent 8bedf02 commit e70babf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SplunkTarget.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function export()
2727

2828
$splunkmsg = [
2929
'source' => Yii::$app->params['splunk']['source'],
30-
'host' => $_SERVER['SERVER_NAME'],
30+
'host' => Yii::$app->params['splunk']['host'],
3131
'event' => '',
3232
];
3333

@@ -54,7 +54,7 @@ public function export()
5454
curl_close($ch);
5555
}
5656
}
57-
57+
5858
public function formatMessage($message)
5959
{
6060
list($text, $level, $category, $timestamp) = $message;

0 commit comments

Comments
 (0)