From: rettenbe Date: Tue, 15 Apr 2008 13:36:46 +0000 (+0000) Subject: more debug infos at event recreate_fai_server X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0b172ab9c13b3472c25caf876fb571a8d6fc97e4;p=gosa.git more debug infos at event recreate_fai_server git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10477 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/gosa-si-server b/gosa-si/gosa-si-server index 05b4d47de..f5d6b85dd 100755 --- a/gosa-si/gosa-si-server +++ b/gosa-si/gosa-si-server @@ -1601,9 +1601,11 @@ sub change_goto_state { sub create_fai_server_db { my ($table_name, $kernel, $dont_create_packages_list, $session_id) = @_; my $result; + + if (not defined $session_id) { $session_id = 0; } my $ldap_handle = &get_ldap_handle(); if(defined($ldap_handle)) { - daemon_log("INFO: create_fai_server_db: start", 5); + daemon_log("$session_id INFO: create_fai_server_db: start", 5); my $mesg= $ldap_handle->search( base => $ldap_base, scope => 'sub', @@ -1630,7 +1632,7 @@ sub create_fai_server_db { } } } - daemon_log("INFO: create_fai_server_db: finished", 5); + daemon_log("$session_id INFO: create_fai_server_db: finished", 5); # TODO: Find a way to post the 'create_packages_list_db' event if(!defined($dont_create_packages_list)) { diff --git a/gosa-si/server/events/gosaTriggered.pm b/gosa-si/server/events/gosaTriggered.pm index d9df28435..f4feb3091 100644 --- a/gosa-si/server/events/gosaTriggered.pm +++ b/gosa-si/server/events/gosaTriggered.pm @@ -206,7 +206,7 @@ sub recreate_fai_server_db { } $main::fai_server_db->create_table("new_fai_server", \@main::fai_server_col_names); - &main::create_fai_server_db("new_fai_server",undef,"dont"); + &main::create_fai_server_db("new_fai_server",undef,"dont", $session_id); $main::fai_server_db->move_table("new_fai_server", $main::fai_server_tn); my @out_msg_l = ( $out_msg );