Skip to content

Commit 200e3e1

Browse files
committed
Revert "Log timers of CP"
This reverts commit 1eec6e1.
1 parent 49e3946 commit 200e3e1

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

os2web_cp_service.module

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,6 @@ function os2web_cp_service_alter_configuration($key, $value) {
151151
* TRUE on successful content creation.
152152
*/
153153
function os2web_cp_service_create_case(array $data) {
154-
155-
watchdog('os2web_cp_service', 'CP case start: %time', array('%time' => timer_read('cp')), WATCHDOG_NOTICE);
156154
// Prepare data.
157155
$data = array_replace_recursive(os2web_cp_service_default_case(), $data);
158156

@@ -172,7 +170,6 @@ function os2web_cp_service_create_case(array $data) {
172170
else {
173171
$node = node_load(array_pop($nids));
174172
}
175-
watchdog('os2web_cp_service', 'CP old deleted: %time', array('%time' => timer_read('cp')), WATCHDOG_NOTICE);
176173

177174
// See if the triggered rules on the published node, is approved
178175
// in the vocabulary. Otherwise the node will be unpublished.
@@ -284,7 +281,6 @@ function os2web_cp_service_create_case(array $data) {
284281
try {
285282
node_submit($node);
286283
node_save($node);
287-
watchdog('os2web_cp_service', 'CP case done: %time', array('%time' => timer_read('cp')), WATCHDOG_NOTICE);
288284
return TRUE;
289285
}
290286
catch (Exception $e) {
@@ -406,8 +402,6 @@ function os2web_cp_service_default_case() {
406402
* TRUE on successful content creation.
407403
*/
408404
function os2web_cp_service_create_document(array $data) {
409-
410-
watchdog('os2web_cp_service', 'CP document start: %time', array('%time' => timer_read('cp')), WATCHDOG_NOTICE);
411405
$data = array_replace_recursive(os2web_cp_service_default_document(), $data);
412406
// Prepare data.
413407
$query = new EntityFieldQuery();
@@ -426,7 +420,6 @@ function os2web_cp_service_create_document(array $data) {
426420
else {
427421
$node = node_load(array_pop($nids));
428422
}
429-
watchdog('os2web_cp_service', 'CP old deleted: %time', array('%time' => timer_read('cp')), WATCHDOG_NOTICE);
430423

431424
// See if the triggered rules on the published node, is approved
432425
// in the vocabulary. Otherwise the node will be unpublished.
@@ -525,7 +518,6 @@ function os2web_cp_service_create_document(array $data) {
525518
}
526519
}
527520
}
528-
watchdog('os2web_cp_service', 'CP document done: %time', array('%time' => timer_read('cp')), WATCHDOG_NOTICE);
529521
return TRUE;
530522
}
531523

0 commit comments

Comments
 (0)