mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-13 13:35:54 +00:00
wip
This commit is contained in:
@@ -19,8 +19,6 @@ class RequestLogger
|
||||
/** @var CliRequestLogger */
|
||||
protected $cliRequestLogger;
|
||||
|
||||
const MAX_LOGGED_REQUESTS = 10;
|
||||
|
||||
public function __construct(Browser $browser, CliRequestLogger $cliRequestLogger)
|
||||
{
|
||||
$this->client = $browser;
|
||||
@@ -40,7 +38,7 @@ class RequestLogger
|
||||
|
||||
array_unshift($this->requests, $loggedRequest);
|
||||
|
||||
$this->requests = array_slice($this->requests, 0, static::MAX_LOGGED_REQUESTS);
|
||||
$this->requests = array_slice($this->requests, 0, config('expose.max_logged_requests', 10));
|
||||
|
||||
$this->cliRequestLogger->logRequest($loggedRequest);
|
||||
|
||||
|
||||
@@ -55,6 +55,17 @@ return [
|
||||
*/
|
||||
'default_tld' => 'test',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Maximum Logged Requests
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The maximum number if requests to keep in memory when inspecting your
|
||||
| requests and responses in the local dashboard.
|
||||
|
|
||||
*/
|
||||
'max_logged_requests' => 25,
|
||||
|
||||
'admin' => [
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user