Skip to content

Commit

Permalink
adding isDebug logic.
Browse files Browse the repository at this point in the history
Signed-off-by: Vallabh Kansagara <[email protected]>
  • Loading branch information
vrkansagara committed May 25, 2018
1 parent e2f461d commit 624a251
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Http/Middleware/AfterMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class AfterMiddleware

public $bufferOldSize;
public $bufferNewSize;
public $debug = 1;
public $debug = 0;

/**
* Handle an incoming request.
Expand All @@ -25,6 +25,12 @@ class AfterMiddleware
*/
public function handle($request, Closure $next)
{

$isDebug = isset(getenv('VRKANSAGARA_COMPRESS_DEBUG'))
&& ! empty(getenv('VRKANSAGARA_COMPRESS_DEBUG'))
getenv('VRKANSAGARA_COMPRESS_DEBUG')
: 0;

$targetEnvironment = explode(
',', getenv('VRKANSAGARA_COMPRESS_ENVIRONMENT')
);
Expand Down

0 comments on commit 624a251

Please sign in to comment.