From ed3e21715eea505e9dd1aeafe0daf975bf9dde9d Mon Sep 17 00:00:00 2001 From: Rampriya <114834474+Rampriya-S@users.noreply.github.com> Date: Sun, 20 Oct 2024 15:46:32 -0400 Subject: [PATCH] Avoid usage of gs.log() (#146) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Highly recommended practice to use ATFs for regression testing on instance upgrade and releases. * Use Logging Levels: Instead of gs.log(), consider using more appropriate logging levels, such as: gs.info() for informational messages. gs.warn() for warnings that don’t break functionality but may need attention. gs.error() for logging errors that require investigation. * Update README.md --------- Co-authored-by: Laszlo <47461634+Lacah@users.noreply.github.com> --- README.md | 6 +++ ca8467c41b9abc10ce0f62c3b24bcbaa/checksum.txt | 2 +- ...check_6b832a7953d1d61000b51901a0490e24.xml | 53 +++++++++++++++++++ 3 files changed, 60 insertions(+), 1 deletion(-) create mode 100644 ca8467c41b9abc10ce0f62c3b24bcbaa/update/scan_script_only_check_6b832a7953d1d61000b51901a0490e24.xml diff --git a/README.md b/README.md index 2276e10..21646e8 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,12 @@ Open-Sourced community contributed and owned repository for Instance Scan Defini ## Category: Manageability +###Avoid gs.log()Statement +Use Logging Levels: Instead of gs.log(), consider using more appropriate logging levels, such as: +gs.info() for informative messages. +gs.warn() for warnings that don’t break functionality but may need attention. +gs.error() for logging errors that require investigation. + ### Create ATFs in sub production instance Highly recommended practice to use ATFs for regression testing on instance upgrade and releases. diff --git a/ca8467c41b9abc10ce0f62c3b24bcbaa/checksum.txt b/ca8467c41b9abc10ce0f62c3b24bcbaa/checksum.txt index a5813a2..a747ec2 100644 --- a/ca8467c41b9abc10ce0f62c3b24bcbaa/checksum.txt +++ b/ca8467c41b9abc10ce0f62c3b24bcbaa/checksum.txt @@ -1 +1 @@ -2GmWsJ-o1b3QV3-6URGiSXSMI8C_MGtuzUzllO-E25BLlW8xY3T33MhCEIjrlR3Iagmuub4YikspwkRRYc_er66_c1onV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nprsHYFFewiMuZflFHhISDzjSPs2TIy60TrSISouTfVY-p4IgG_v-eSXage9wzpvjoHQZnMwvZrePEtW62OkG8TmD86uZtWTHlPYo2Prj1OGaXZRGHvd3K4bbdtwOWKq9exXozy83yl_w_U3ich8kLj1LuppKxCmMQVEnPvUSdxqwtkqGidBLqZKTcVLCFqJc \ No newline at end of file diff --git a/ca8467c41b9abc10ce0f62c3b24bcbaa/update/scan_script_only_check_6b832a7953d1d61000b51901a0490e24.xml b/ca8467c41b9abc10ce0f62c3b24bcbaa/update/scan_script_only_check_6b832a7953d1d61000b51901a0490e24.xml new file mode 100644 index 0000000..57ea32e --- /dev/null +++ b/ca8467c41b9abc10ce0f62c3b24bcbaa/update/scan_script_only_check_6b832a7953d1d61000b51901a0490e24.xml @@ -0,0 +1,53 @@ + + + true + upgradability + Use Logging Levels: Instead of gs.log(), consider using more appropriate logging levels, such as: +gs.info() for informational messages. +gs.warn() for warnings that don’t break functionality but may need attention. +gs.error() for logging errors that require investigation. + + scan_finding + Avoid usage of gs.log() + 3 + + + 100 + 0 + 1 + + Avoid usage of gs.log() in prod + scan_script_only_check + admin + 2024-10-18 02:30:31 + 6b832a7953d1d61000b51901a0490e24 + 0 + Avoid usage of gs.log() + ca8467c41b9abc10ce0f62c3b24bcbaa + + ca8467c41b9abc10ce0f62c3b24bcbaa + scan_script_only_check_6b832a7953d1d61000b51901a0490e24 + admin + 2024-10-18 02:30:31 + + + + 6b832a7953d1d61000b51901a0490e24 + admin + 2024-10-18 02:30:31 + 07a5a23953d1d61000b51901a0490e95 + 0 + admin + 2024-10-18 02:30:31 + scan_script_only_check
+ true +
+