mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-10 20:43:14 +01:00
LSldapObject::submitChange(): improve logging
This commit is contained in:
parent
6a3fd60d3e
commit
cccce6edb5
1 changed files with 5 additions and 2 deletions
|
@ -601,7 +601,7 @@ class LSldapObject extends LSlog_staticLoggerClass {
|
||||||
if(($attr -> isUpdate())&&($attr -> isValidate())) {
|
if(($attr -> isUpdate())&&($attr -> isValidate())) {
|
||||||
if(($attr -> name == $this -> getConfig('rdn')) && (!$new)) {
|
if(($attr -> name == $this -> getConfig('rdn')) && (!$new)) {
|
||||||
$new = true;
|
$new = true;
|
||||||
self :: log_debug('Rename');
|
self :: log_debug("$this -> submitChange($idForm): renaming detected");
|
||||||
if (!$this -> fireEvent('before_rename')) {
|
if (!$this -> fireEvent('before_rename')) {
|
||||||
LSerror :: addErrorCode('LSldapObject_16');
|
LSerror :: addErrorCode('LSldapObject_16');
|
||||||
return;
|
return;
|
||||||
|
@ -610,6 +610,7 @@ class LSldapObject extends LSlog_staticLoggerClass {
|
||||||
$this -> dn = false;
|
$this -> dn = false;
|
||||||
$newDn = $this -> getDn();
|
$newDn = $this -> getDn();
|
||||||
if ($newDn) {
|
if ($newDn) {
|
||||||
|
self :: log_debug("$this -> submitChange($idForm): Rename me to '$newDn'");
|
||||||
if (!LSldap :: move($oldDn,$newDn)) {
|
if (!LSldap :: move($oldDn,$newDn)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -625,6 +626,7 @@ class LSldapObject extends LSlog_staticLoggerClass {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
self :: log_error("$this -> submitChange($idForm): fail to retreive new DN");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -637,7 +639,7 @@ class LSldapObject extends LSlog_staticLoggerClass {
|
||||||
$dn=$this -> getDn();
|
$dn=$this -> getDn();
|
||||||
if($dn) {
|
if($dn) {
|
||||||
$this -> dn=$dn;
|
$this -> dn=$dn;
|
||||||
self :: log_debug($submitData);
|
self :: log_debug($this." -> submitChange($idForm): submitData=".varDump($submitData));
|
||||||
if ($new) {
|
if ($new) {
|
||||||
if (!$this -> fireEvent('before_create')) {
|
if (!$this -> fireEvent('before_create')) {
|
||||||
LSerror :: addErrorCode('LSldapObject_20');
|
LSerror :: addErrorCode('LSldapObject_20');
|
||||||
|
@ -673,6 +675,7 @@ class LSldapObject extends LSlog_staticLoggerClass {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
self :: log_debug($this." -> submitChange($idForm): no change");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue