Code

Added logging to some classes
[gosa.git] / plugins / admin / systems / class_servDNS.inc
index 793acb21dafd672009cf25998d00fe90af6f7d63..c32ac192d20f3fa87a1867d16f2f6005d8779e8f 100644 (file)
@@ -50,6 +50,11 @@ class servdns extends goService
     }else{
       $this->is_account = true;
     }
+  
+    if($this->is_account){
+      @log::log("view","unknown/".get_class($this),$this->dn);
+    }
+
     $this->initially_was_account = $this->is_account;
   }
 
@@ -294,6 +299,7 @@ class servdns extends goService
       foreach($tmp['zoneUpdates'] as $dn => $attrs){
         $ldap->cd($dn);
         $ldap->modify($attrs);
+        @log::log("modfiy","unknown/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
         show_ldap_error($ldap->get_error(), sprintf(_("Updating of system server/dns with dn '%s' failed."),$this->dn));
       }
     }
@@ -303,6 +309,7 @@ class servdns extends goService
     foreach($tmp['del'] as $dn => $del){
       $ldap->cd($dn);
       $ldap->rmdir_recursive($dn);
+      @log::log("remove","unknown/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
       show_ldap_error($ldap->get_error(), sprintf(_("Removing of system server/dns with dn '%s' failed."),$this->dn));
     }