Code

more debug infos at event recreate_fai_server
authorrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 15 Apr 2008 13:36:46 +0000 (13:36 +0000)
committerrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 15 Apr 2008 13:36:46 +0000 (13:36 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10477 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/gosa-si-server
gosa-si/server/events/gosaTriggered.pm

index 05b4d47de84e61b337a76afaccf198423a99daac..f5d6b85ddb75189002cb68791a589c9d4033c1c5 100755 (executable)
@@ -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)) {
index d9df2843517bee9cefa54bceda366a0b923c0277..f4feb3091b797f8087c4301bbcc0b0ff886c6c45 100644 (file)
@@ -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 );