From ba735976dc054c32f41adce5843b9df61c17c160 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 15 May 2007 10:33:16 +0000 Subject: [PATCH] Fixed logging git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6385 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_termDNS.inc | 2 +- plugins/admin/systems/class_terminalService.inc | 4 +++- plugins/admin/systems/class_terminalStartup.inc | 5 ++++- plugins/admin/systems/class_workstationService.inc | 4 +++- plugins/admin/systems/class_workstationStartup.inc | 4 +++- 5 files changed, 14 insertions(+), 5 deletions(-) diff --git a/plugins/admin/systems/class_termDNS.inc b/plugins/admin/systems/class_termDNS.inc index 1161e598b..d6b04fff5 100644 --- a/plugins/admin/systems/class_termDNS.inc +++ b/plugins/admin/systems/class_termDNS.inc @@ -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); } } diff --git a/plugins/admin/systems/class_terminalService.inc b/plugins/admin/systems/class_terminalService.inc index 20407b4f2..2be95df79 100644 --- a/plugins/admin/systems/class_terminalService.inc +++ b/plugins/admin/systems/class_terminalService.inc @@ -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() diff --git a/plugins/admin/systems/class_terminalStartup.inc b/plugins/admin/systems/class_terminalStartup.inc index 554118db4..dfae30147 100644 --- a/plugins/admin/systems/class_terminalStartup.inc +++ b/plugins/admin/systems/class_terminalStartup.inc @@ -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() diff --git a/plugins/admin/systems/class_workstationService.inc b/plugins/admin/systems/class_workstationService.inc index 51a0cab01..190962c4a 100644 --- a/plugins/admin/systems/class_workstationService.inc +++ b/plugins/admin/systems/class_workstationService.inc @@ -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() diff --git a/plugins/admin/systems/class_workstationStartup.inc b/plugins/admin/systems/class_workstationStartup.inc index dc8aebdc3..2fbda7048 100644 --- a/plugins/admin/systems/class_workstationStartup.inc +++ b/plugins/admin/systems/class_workstationStartup.inc @@ -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); + } } -- 2.30.2