From: hickert Date: Wed, 23 May 2007 07:41:13 +0000 (+0000) Subject: Updated logging X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=59d43faa5947ef30f3a5ce3bd94611b533877213;p=gosa.git Updated logging git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6447 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/groups/class_groupApplication.inc b/plugins/admin/groups/class_groupApplication.inc index da3a3a413..753352db1 100644 --- a/plugins/admin/groups/class_groupApplication.inc +++ b/plugins/admin/groups/class_groupApplication.inc @@ -936,7 +936,8 @@ class appgroup extends plugin { /* Skip saving application settings, if we do not have release acls */ if($this->no_release_acls){ - gosa_log("Skip saving group application extension. Caused by insufficient acls"); + new log("security","groups/".get_class($this),$this->dn,array(),"Skip saving group application extension. Caused by insufficient acls"); + return; } diff --git a/plugins/admin/mimetypes/class_mimetypeManagement.inc b/plugins/admin/mimetypes/class_mimetypeManagement.inc index f0c1b4ddb..fc87bec43 100755 --- a/plugins/admin/mimetypes/class_mimetypeManagement.inc +++ b/plugins/admin/mimetypes/class_mimetypeManagement.inc @@ -205,7 +205,6 @@ class mimetypeManagement extends plugin /* Save data data to ldap */ $this->mimetabs->set_release($this->DivListMimeTypes->selectedRelease); $this->mimetabs->save(); - gosa_log ("Mime object'".$this->dn."' has been saved"); if (!isset($_POST['edit_apply'])){ /* Mime type has been saved successfully, remove lock from LDAP. */ @@ -309,7 +308,6 @@ class mimetypeManagement extends plugin $this->mimetabs= new mimetabs($this->config, $this->config->data['TABS']['MIMETABS'], $dn,"mimetypes"); $this->mimetabs->set_acl_base($dn); $this->mimetabs->delete (); - gosa_log ("Mime type object'".$dn."' has been removed"); unset ($this->mimetabs); $this->mimetabs= NULL; @@ -317,7 +315,7 @@ class mimetypeManagement extends plugin /* Normally this shouldn't be reached, send some extra logs to notify the administrator */ print_red (_("You are not allowed to delete this mime type!")); - gosa_log ("Warning: '".$this->ui->uid."' tried to trick group deletion."); + @log::log("security","mimetypes/".get_class($this),$dn,array(),"Tried to trick deletion."); } /* Remove lock file after successfull deletion */ del_lock ($dn); @@ -393,7 +391,6 @@ class mimetypeManagement extends plugin $this->mimetabs= new mimetabs($this->config, $this->config->data['TABS']['MIMETABS'], $this->dn,"mimetypes"); $this->mimetabs->set_acl_base($this->dn); $this->mimetabs->delete (); - gosa_log ("Mime type object'".$this->dn."' has been removed"); unset ($this->mimetabs); $this->mimetabs= NULL; @@ -402,7 +399,7 @@ class mimetypeManagement extends plugin /* Normally this shouldn't be reached, send some extra logs to notify the administrator */ print_red (_("You are not allowed to delete this mime type!")); - gosa_log ("Warning: '".$this->ui->uid."' tried to trick group deletion."); + @log::log("security","mimetypes/".get_class($this),$dn,array(),"Tried to trick deletion."); } /* Remove lock file after successfull deletion */