remove debug logging

This commit is contained in:
Bilal Catic
2018-10-11 05:27:17 +02:00
parent e4a7b28301
commit f3d911e5b1

View File

@@ -39,7 +39,6 @@ class Wiaas_Product_Hooks {
private static function validate_package($package){
$package_total_cost = Wiaas_Pricing::get_package_total_cost($package);
$package_max_cost_margin = Wiaas_Package_Pricing::get_package_max_cost_margin($package);
file_put_contents('/home/bilal/wiaas.log', 'Paket ID : ' . $package->get_id() . ' Total cost = ' . $package_total_cost . ' Max margin = ' . $package_max_cost_margin . ' ||| ', FILE_APPEND);
if (($package_max_cost_margin != 0) && ($package_total_cost > $package_max_cost_margin)){
Wiaas_Package_Status::set_package_status($package->get_id(), Wiaas_Package_Status::INVALID_MARGIN);
}else{