From 5e9e7e4ddeba6408c3b51f91432377edef8cf722 Mon Sep 17 00:00:00 2001 From: Digimer Date: Wed, 10 Mar 2021 21:14:56 -0500 Subject: [PATCH] * Removed debug logging from tools. Signed-off-by: Digimer --- tools/anvil-configure-host | 2 -- tools/anvil-join-anvil | 2 -- tools/striker-auto-initialize-all | 2 -- tools/striker-initialize-host | 2 -- 4 files changed, 8 deletions(-) diff --git a/tools/anvil-configure-host b/tools/anvil-configure-host index eb4eaa18..07142c11 100755 --- a/tools/anvil-configure-host +++ b/tools/anvil-configure-host @@ -36,8 +36,6 @@ my $anvil = Anvil::Tools->new(); # Read switches $anvil->Get->switches; -$anvil->Log->level({set => 2}); -$anvil->Log->secure({set => 1}); # Make sure we're running as 'root' # $< == real UID, $> == effective UID diff --git a/tools/anvil-join-anvil b/tools/anvil-join-anvil index 051baeda..ed0e11cc 100755 --- a/tools/anvil-join-anvil +++ b/tools/anvil-join-anvil @@ -37,8 +37,6 @@ my $anvil = Anvil::Tools->new(); # Read switches (target ([user@]host[:port]) and the file with the target's password. If the password is # passed directly, it will be used. Otherwise, the password will be read from the database. $anvil->Get->switches; -$anvil->Log->level({set => 2}); -$anvil->Log->secure({set => 1}); $anvil->Log->entry({source => $THIS_FILE, line => __LINE__, level => 2, key => "log_0115", variables => { program => $THIS_FILE }}); $anvil->Database->connect(); diff --git a/tools/striker-auto-initialize-all b/tools/striker-auto-initialize-all index 9bb9160b..f92800f4 100755 --- a/tools/striker-auto-initialize-all +++ b/tools/striker-auto-initialize-all @@ -35,8 +35,6 @@ if (not $anvil->data->{sys}{database}{connections}) $anvil->data->{switches}{config} = ""; $anvil->data->{switches}{'job-uuid'} = ""; $anvil->Get->switches; -$anvil->Log->level({set => 2}); -$anvil->Log->secure({set => 1}); # Read in the config file if ((not $anvil->data->{switches}{config}) or (not -f $anvil->data->{switches}{config})) diff --git a/tools/striker-initialize-host b/tools/striker-initialize-host index 5a72c684..8e80e97d 100755 --- a/tools/striker-initialize-host +++ b/tools/striker-initialize-host @@ -33,8 +33,6 @@ my $anvil = Anvil::Tools->new(); # Read switches (target ([user@]host[:port]) and the file with the target's password. $anvil->data->{switches}{'job-uuid'} = ""; $anvil->Get->switches; -$anvil->Log->level({set => 2}); -$anvil->Log->secure({set => 1}); $anvil->Log->entry({source => $THIS_FILE, line => __LINE__, level => 2, key => "log_0115", variables => { program => $THIS_FILE }}); $anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 2, list => { 'switches::job-uuid' => $anvil->data->{switches}{'job-uuid'},