Fixes: #18241 - Script results log_threshold should default to Default (#18501)

* Changed LogLevelChoices order; Changed ScriptResultView to select LogLevelChoices to LOG_DEFAULT and setup the html template to put (All) in the last one

* Change LogLevelChoices in ScriptResultView get_table method

* Remove default option, add Default string to INFO

* Fix scripts.py and reports.py to reflect removing DEFAULT level

* fix linting
This commit is contained in:
Renato Almeida de Oliveira
2025-02-06 18:30:25 -03:00
committed by GitHub
parent 8e91db0394
commit efa939d0c2
6 changed files with 14 additions and 17 deletions

View File

@@ -460,7 +460,7 @@ class BaseScript:
# Logging
#
def _log(self, message, obj=None, level=LogLevelChoices.LOG_DEFAULT):
def _log(self, message, obj=None, level=LogLevelChoices.LOG_INFO):
"""
Log a message. Do not call this method directly; use one of the log_* wrappers below.
"""