From de4bb0d0010c89a6be333904d97cc6d5c8a3b1d4 Mon Sep 17 00:00:00 2001 From: digimer Date: Sat, 20 Jan 2024 23:36:53 -0500 Subject: [PATCH] Bumped logging for debugging. Signed-off-by: digimer --- tools/anvil-safe-start | 5 +++++ tools/scancore | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/anvil-safe-start b/tools/anvil-safe-start index 34b32f4b..86072904 100755 --- a/tools/anvil-safe-start +++ b/tools/anvil-safe-start @@ -44,6 +44,11 @@ $anvil->Get->switches({list => [], man => $THIS_FILE}); $anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 2, list => $anvil->data->{switches}}); $anvil->Log->entry({source => $THIS_FILE, line => __LINE__, level => 2, key => "log_0115", variables => { program => $THIS_FILE }}); +### TODO: Remove before PR! +# Force up the logging. +$anvil->Log->level({set => 2}); +$anvil->Log->secure({set => 1}); + # Make sure we're running as 'root' # $< == real UID, $> == effective UID if (($< != 0) && ($> != 0)) diff --git a/tools/scancore b/tools/scancore index e4e842d8..1743dce7 100755 --- a/tools/scancore +++ b/tools/scancore @@ -143,7 +143,7 @@ while(1) if ($anvil->data->{sys}{database}{connections}) { # Run the normal tasks - $anvil->ScanCore->call_scan_agents(); + $anvil->ScanCore->call_scan_agents({debug => 2}); # Do post-scan analysis. $anvil->ScanCore->post_scan_analysis({debug => 2});