From 904ff2979ec7f2cfd4c74b5b5c5d767b3268193b Mon Sep 17 00:00:00 2001 From: "Jeffrey T. Palmer" Date: Wed, 8 Sep 2021 07:01:32 -0400 Subject: [PATCH] Set default log level (#92) --- bin/appkernel_reports_manager | 3 +++ bin/xdmod-akrr-ingestor | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/bin/appkernel_reports_manager b/bin/appkernel_reports_manager index abe3556..8003ddc 100755 --- a/bin/appkernel_reports_manager +++ b/bin/appkernel_reports_manager @@ -133,6 +133,9 @@ if($logLevel >= Log::DEBUG) { print("\t" . $arg . ' => ' . $value . "\n"); } } +if ($logLevel === -1) { + $logLevel = Log::NOTICE; +} // ================================================================================ // Logger configuration. $conf = array( diff --git a/bin/xdmod-akrr-ingestor b/bin/xdmod-akrr-ingestor index 394a59c..27e1209 100755 --- a/bin/xdmod-akrr-ingestor +++ b/bin/xdmod-akrr-ingestor @@ -201,6 +201,10 @@ if ($ingestingConfig['sinceLastLoadTime'] !== null) { } } +if ($logLevel === -1) { + $logLevel = Log::NOTICE; +} + $conf = array( 'file' => false, 'mail' => false,