added debug output

This commit is contained in:
Roland Gruber 2015-03-11 20:14:36 +00:00
parent 3f92c0d8f1
commit 5392204173
1 changed files with 4 additions and 1 deletions

View File

@ -135,8 +135,11 @@ function r_copy_dn($serverSRC,$serverDST,$snapshottree,$dnSRC,$dnDST,$remove) {
$copy_result = r_copy_dn($serverSRC,$serverDST,$snapshottree,$child_dn,$dnDST_new,$remove); $copy_result = r_copy_dn($serverSRC,$serverDST,$snapshottree,$child_dn,$dnDST_new,$remove);
$copy_message = array_merge($copy_message,array_values($copy_result)); $copy_message = array_merge($copy_message,array_values($copy_result));
if (! $copy_result) if (! $copy_result) {
$hadError = true; $hadError = true;
$msg = print_r($copy_result, true);
debug_log("Error copying DN " . $child_dn . ': ' . $msg, 1, 0);
}
} }
if (! $hadError && $remove) { if (! $hadError && $remove) {