Skip to content

Commit

Permalink
Fixed test, and add default value for new config minimumLevel
Browse files Browse the repository at this point in the history
  • Loading branch information
Jozhef committed Mar 18, 2019
1 parent 218bdd9 commit b6b2666
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Defaults.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php namespace Rollbar;

use Rollbar\Utilities;
use Monolog\Logger;
use Rollbar\Payload\Notifier;
use Psr\Log\LogLevel;

Expand Down Expand Up @@ -313,6 +313,11 @@ public function maxItems($value = null)
return $value !== null ? $value : $this->maxItems;
}

public function minimumLevel($value = null)
{
return $value !== null ? $value : $this->minimumLevel;
}

private $psrLevels;
private $errorLevels;
private $autodetectBranch = false;
Expand Down Expand Up @@ -358,4 +363,5 @@ public function maxItems($value = null)
private $scrubFields;
private $customTruncation = null;
private $maxItems = 10;
private $minimumLevel = Logger::ERROR;
}

0 comments on commit b6b2666

Please sign in to comment.