We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f99be56 commit 1064658Copy full SHA for 1064658
pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Core/BaseTraits.inc
@@ -53,7 +53,8 @@ trait BaseTraits {
53
54
# If the log level has not been set yet, obtain it
55
if (!isset(self::$__log_level)) {
56
- self::$__log_level = constant(RESTAPISettings::get_pkg_config()['log_level']) ?? 4;
+ $log_lvl_cfg = RESTAPISettings::get_pkg_config()['log_level'] ?? 'LOG_WARNING';
57
+ self::$__log_level = constant($log_lvl_cfg);
58
}
59
60
# Do not log if the incoming level is higher than the configured log level
0 commit comments