Removed some debug messages in products and recipes

Fri, 21 Aug 2020 10:55:36 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Fri, 21 Aug 2020 10:55:36 +0200
changeset 711
0a1be3bfcc60
parent 710
9646123ea063
child 712
65da479b5542

Removed some debug messages in products and recipes

www/includes/db_product.php file | annotate | diff | comparison | revisions
www/includes/db_recipes.php file | annotate | diff | comparison | revisions
--- a/www/includes/db_product.php	Wed Aug 19 17:13:24 2020 +0200
+++ b/www/includes/db_product.php	Fri Aug 21 10:55:36 2020 +0200
@@ -513,11 +513,11 @@
 			syslog(LOG_NOTICE, "db_product: result: ".mysqli_error($connect));
 	} else {
 		if (isset($_POST['update'])) {
-			syslog(LOG_NOTICE, "db_product: updated record ".$_POST['record']);
+			//syslog(LOG_NOTICE, "db_product: updated record ".$_POST['record']);
 			inventory_reduce();
 		} else {
 			$lastid = mysqli_insert_id($connect);
-			syslog(LOG_NOTICE, "db_product: inserted record ".$lastid);
+			//syslog(LOG_NOTICE, "db_product: inserted record ".$lastid);
 		}
 	}
 	echo $result;
--- a/www/includes/db_recipes.php	Wed Aug 19 17:13:24 2020 +0200
+++ b/www/includes/db_recipes.php	Fri Aug 21 10:55:36 2020 +0200
@@ -293,7 +293,7 @@
                         $yeast .= ',"y_pofpos":' . $item['y_pofpos'];
                         $yeast .= ',"y_zymocide":' . $item['y_zymocide'];
 			$yeast .= ',"y_cost":' . $item['y_cost'] . '}';
-			syslog(LOG_NOTICE, $yeast);
+			//syslog(LOG_NOTICE, $yeast);
 			$yeasts .= $yeast;
 		}
 	}
@@ -578,7 +578,7 @@
 					mysqli_free_result($result2);
 				}
 			}
-			syslog(LOG_NOTICE, json_encode($yeasts, JSON_UNESCAPED_UNICODE));
+			//syslog(LOG_NOTICE, json_encode($yeasts, JSON_UNESCAPED_UNICODE));
 			$recipes .= ',"yeasts":' . json_encode($yeasts, JSON_UNESCAPED_UNICODE);
 		} else {
 			// Just leave it.

mercurial