mirror of
https://github.com/m8tin/cis.git
synced 2026-08-01 11:47:31 +02:00
Use of base.set() parameter optional and remove exit 1, because is is obsolete.
This commit is contained in:
+1
-1
@@ -290,7 +290,7 @@ function base.loadModule() {
|
||||
|
||||
function base.log() {
|
||||
local _LOGLEVEL _LOGLEVEL_UPPER
|
||||
base.set _LOGLEVEL "${1}" '^(error|warn|info|debug)$' || exit 1
|
||||
base.set _LOGLEVEL "${1}" '^(error|warn|info|debug)$'
|
||||
_LOGLEVEL_UPPER="${_LOGLEVEL:?"base.log(): Missing valid first parameter LOGLEVEL"}"
|
||||
_LOGLEVEL_UPPER="${_LOGLEVEL_UPPER^^}"
|
||||
readonly _LOGLEVEL_UPPER
|
||||
|
||||
Reference in New Issue
Block a user