Skip to content

Commit

Permalink
Merge pull request #148 from donwilson/patch-1
Browse files Browse the repository at this point in the history
Fix to soft boolean checks to properly disable logging
  • Loading branch information
hlu2 authored May 26, 2018
2 parents c69c881 + c76ee29 commit f1b1db3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Diagnostics/LogRequestsToDisk.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class LogRequestsToDisk
*/
public function __construct($enableServiceRequestLogging=false, $serviceRequestLoggingLocation=null)
{
$this->EnableServiceRequestsLogging = $enableServiceRequestLogging;
$this->EnableServiceRequestsLogging = (!empty($enableServiceRequestLogging) && ("false" !== strtolower(trim($enableServiceRequestLogging))));
$this->ServiceRequestLoggingLocation = $serviceRequestLoggingLocation;
}

Expand Down

0 comments on commit f1b1db3

Please # to comment.