-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated constructor params #1174
Conversation
Ability to pass in host, needed for new Logentries accounts which are now on a different domain.
@@ -31,13 +31,13 @@ class LogEntriesHandler extends SocketHandler | |||
* | |||
* @throws MissingExtensionException If SSL encryption is set to true and OpenSSL is missing | |||
*/ | |||
public function __construct($token, $useSSL = true, $level = Logger::DEBUG, $bubble = true) | |||
public function __construct($token, $host = 'data.logentries.com', $useSSL = true, $level = Logger::DEBUG, $bubble = true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should go at the end of the parameter list or it will be a BC break.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True. I'm using Laravel which automagically passes in the constructor params so I did not catch that.
Looks good to me now |
Thanks, merged in 1.x and master. |
Note that the correct way to do this is to migrate to the InsightOpsHandler |
Resolves #1173
Added ability to pass in host parameter. This is needed for new Logentries accounts which are now on a different domain (rapid7.com).
Note: You also need to pass in
$useSSL
asfalse
because it seems port 443 is not an option on the new domain, but I left it in for backwards compatibility.