From ff3d1983e38f11a3d83246e93f6b522c9b1a2cd3 Mon Sep 17 00:00:00 2001 From: digimer Date: Thu, 2 Nov 2023 23:26:12 -0400 Subject: [PATCH] Bumped up logging to debug an anvil-provision-server hang. Signed-off-by: digimer --- tools/anvil-provision-server | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/anvil-provision-server b/tools/anvil-provision-server index ca5d7578..e358456a 100755 --- a/tools/anvil-provision-server +++ b/tools/anvil-provision-server @@ -407,8 +407,8 @@ sub write_definition while (not -f $xml_file) { - $anvil->Database->get_servers(); - $anvil->Database->get_server_definitions(); + $anvil->Database->get_servers({debug => 2}); + $anvil->Database->get_server_definitions({debug => 2}); if (not exists $anvil->data->{servers}{anvil_uuid}{$anvil_uuid}{server_name}{$server_name}{server_uuid}) { @@ -423,14 +423,15 @@ sub write_definition { # Write it! my $return = $anvil->Storage->write_file({ + debug => 2, body => $server_definition, file => $xml_file, overwrite => 1, }); + $anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 2, list => { 'return' => $return }}); if (-f $xml_file) { - $anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 3, list => { 'return' => $return }}); $anvil->Job->update_progress({ progress => 80, message => "job_0206,!!file!".$xml_file."!!",