reduce debugging messages

This commit is contained in:
2017-09-07 22:20:39 +10:00
parent 78ebc3ac27
commit 258febf238

View File

@@ -283,7 +283,7 @@ function booking_load($nodes) {
}
function booking_insert($node) {
watchdog('booking_debug', "<pre>Inserting node:\n@info</pre>", array('@info' => print_r($node, TRUE)));
//TODO: Generalise this by using the keys from $node instead of hard coding everything
$data = array();
@@ -294,7 +294,8 @@ function booking_insert($node) {
$data[$key] = $value;
}
}
watchdog('booking_debug', "<pre>Sanitised data:\n@info</pre>", array('@info' => print_r($data, TRUE)));
watchdog('booking_debug', "<pre>Inserting node:\n@info</pre>", array('@info' => print_r($data, TRUE)));
//watchdog('booking_debug', "<pre>Sanitised data:\n@info</pre>", array('@info' => print_r($data, TRUE)));
db_insert('booking_person')->fields($data)->execute();
/*