Code

Fixed logging
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 15 May 2007 10:33:16 +0000 (10:33 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 15 May 2007 10:33:16 +0000 (10:33 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6385 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_termDNS.inc
plugins/admin/systems/class_terminalService.inc
plugins/admin/systems/class_terminalStartup.inc
plugins/admin/systems/class_workstationService.inc
plugins/admin/systems/class_workstationStartup.inc

index 1161e598b84d476ec2bba219c4e91941d42b438a..d6b04fff5ca47f8724c5cdacc33b4cc1e0ead4d7 100644 (file)
@@ -271,8 +271,8 @@ class termDNS extends plugin
       foreach($tmp['del'] as $dn => $del){
         $ldap->cd($dn);
         $ldap->rmdir_recursive($dn);
+        @log::log("remove","unknown/".get_class($this),$dn);
       }
-      @log::log("remove","unknown/".get_class($this),$dn);
     }
   }
 
index 20407b4f24f7050e05f1e7cc098a39ac67e396e9..2be95df7957e78c00dc78fec861bde405badcf05 100644 (file)
@@ -244,7 +244,9 @@ class termservice extends plugin
       $this->gotoXVsync = preg_replace("/\+/","-",$this->gotoXVsync);
     }
 
-    @log::log("view","terminal/".get_class($this),$this->dn);
+    if($this->is_account){
+      @log::log("view","terminal/".get_class($this),$this->dn);
+    }
   }
 
   function execute()
index 554118db406ba56482a279773e267e79bff3faec..dfae3014777783a594ef3e81bd8ba5dee3f04ce4 100644 (file)
@@ -144,7 +144,10 @@ class termstartup extends plugin
         }
       }
     }
-    @log::log("view","terminal/".get_class($this),$this->dn);
+
+    if($this->is_account){
+      @log::log("view","terminal/".get_class($this),$this->dn);
+    }
   }
 
   function execute()
index 51a0cab019b13104c0ca74f8f26f4830d769f099..190962c4a561e7ea35f905b6b42f454b606993b9 100644 (file)
@@ -235,7 +235,9 @@ class workservice extends plugin
       $this->MousePorts= array('AUTO' => _("inherited"));
     }
 
-    @log::log("view","workstation/".get_class($this),$this->dn);
+    if($this->is_account){
+      @log::log("view","workstation/".get_class($this),$this->dn);
+    }
   }
 
   function execute()
index dc8aebdc3bcb533b342f1c0387041455c335ef12..2fbda70488236f0ae6e09bed98af62f0c586c684 100644 (file)
@@ -368,7 +368,9 @@ class workstartup extends plugin
       $this->gotoBootKernel= "default";
     }
 
-    @log::log("view","workstation/".get_class($this),$this->dn);
+    if($this->is_account){
+      @log::log("view","workstation/".get_class($this),$this->dn);
+    }
   }