Skip to content

Commit f1b1db3

Browse files
authored
Merge pull request #148 from donwilson/patch-1
Fix to soft boolean checks to properly disable logging
2 parents c69c881 + c76ee29 commit f1b1db3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Diagnostics/LogRequestsToDisk.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class LogRequestsToDisk
3030
*/
3131
public function __construct($enableServiceRequestLogging=false, $serviceRequestLoggingLocation=null)
3232
{
33-
$this->EnableServiceRequestsLogging = $enableServiceRequestLogging;
33+
$this->EnableServiceRequestsLogging = (!empty($enableServiceRequestLogging) && ("false" !== strtolower(trim($enableServiceRequestLogging))));
3434
$this->ServiceRequestLoggingLocation = $serviceRequestLoggingLocation;
3535
}
3636

0 commit comments

Comments
 (0)