Skip to content

Commit

Permalink
Remove rg4wp_debugloglevel option
Browse files Browse the repository at this point in the history
  • Loading branch information
redJ4y committed Feb 7, 2023
1 parent 52ae0fe commit 68a1262
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions main.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,6 @@ function rg4wp_register_settings() {
register_setting('rg4wp', 'rg4wp_async');
register_setting('rg4wp', 'rg4wp_noadmintracking');
register_setting('rg4wp', 'rg4wp_sendfatalerrors');
register_setting('rg4wp', 'rg4wp_debugloglevel');
}

function rg4wp_install() {
Expand All @@ -225,7 +224,6 @@ function rg4wp_install() {
add_option('rg4wp_async', '0');
add_option('rg4wp_noadmintracking', '0');
add_option('rg4wp_sendfatalerrors', '1');
add_option('rg4wp_debugloglevel', 'None');
}

function rg4wp_uninstall() {
Expand All @@ -241,5 +239,4 @@ function rg4wp_uninstall() {
delete_option('rg4wp_async');
delete_option('rg4wp_noadmintracking');
delete_option('rg4wp_sendfatalerrors');
delete_option('rg4wp_debugloglevel');
}
2 changes: 1 addition & 1 deletion src/RaygunClientManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ private static function getTransport(bool $async): TransportInterface {
*/
$transport = $async ? new GuzzleAsync(self::$httpClient) : new GuzzleSync(self::$httpClient);
if (isset(self::$logger)) {
// Attach the logger to the transport
// Attach the logger to the transport to log failed crash reports
$transport->setLogger(self::$logger);
}
return $transport;
Expand Down

0 comments on commit 68a1262

Please sign in to comment.