summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 70a6d14)
raw | patch | inline | side by side (parent: 70a6d14)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 6 Mar 2008 15:32:18 +0000 (15:32 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 6 Mar 2008 15:32:18 +0000 (15:32 +0000) |
-Increased timeout
-Added logging to clean up from mac function
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9398 594d385d-05f5-0310-b6e9-bd551577e9d8
-Added logging to clean up from mac function
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9398 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_gosaSupportDaemon.inc | patch | blob | history |
diff --git a/gosa-core/include/class_gosaSupportDaemon.inc b/gosa-core/include/class_gosaSupportDaemon.inc
index c8a05a09f24aad79cc17bf1e4df5f68501983c4c..6d6b3b4a2a987b96bfbe0fc071286f080bf2334b 100644 (file)
@param boolean Connect Directly connect to daemon socket.
@param float Timeout The timelimit for all socket actions.
*/
- public function __construct($connect=TRUE,$timeout=0.2)
+ public function __construct($connect=TRUE,$timeout=2)
{
#FIXME: bad idea about referencing global variables from within classes
global $config;
</where>
</xml>
";
-
+
+ new log("debug","gosaSupportDaemon::clean_queue_from_mac", "Removing all entries for mac ".$mac."", array(),"follows next.");
+
$data = $this->_send($xml_msg,TRUE);
if(is_array($data) && isset($data['XML'])){
$already_aborted = FALSE;
$tmp->set_type(TRIGGERED_EVENT);
if(!$this->append($tmp)){
msg_dialog::display(_("Error"), sprintf(_("Cannot send abort event for entry: %s"),$entry['ID']) , ERROR_DIALOG);
+ new log("debug","gosaSupportDaemon::clean_queue_from_mac",
+ "Sending 'DaemonEvent_faireboot' for ID '".$entry['ID']."' FAILED!",array(), "FAILED");
+ }else{
+ new log("debug","gosaSupportDaemon::clean_queue_from_mac",
+ "Sending 'DaemonEvent_faireboot' for ID '".$entry['ID']."' successfull",array(), "SUCCESS");
}
;break;
}else{
*/
if(!$this->remove_entries(array($entry['ID']))){
msg_dialog::display(_("Error"), sprintf(_("Cannot remove entry: %s"),$entry['ID']) , ERROR_DIALOG);
+ new log("debug","gosaSupportDaemon::clean_queue_from_mac",
+ "Removing entry ID '".$entry['ID']."' FAILED!",array(), "FAILED");
+ }else{
+ new log("debug","gosaSupportDaemon::clean_queue_from_mac",
+ "Removing entry ID '".$entry['ID']."' successfull!",array(),"SUCCESS");
}
;break;
}