diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/bmcweb_config.h.in | 2 | ||||
-rw-r--r-- | config/meson.build | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/config/bmcweb_config.h.in b/config/bmcweb_config.h.in index b0a3a7bf51..ae98675d3c 100644 --- a/config/bmcweb_config.h.in +++ b/config/bmcweb_config.h.in @@ -14,4 +14,6 @@ constexpr const size_t bmcwebHttpReqBodyLimitMb = @BMCWEB_HTTP_REQ_BODY_LIMIT_MB constexpr const char* mesonInstallPrefix = "@MESON_INSTALL_PREFIX@"; constexpr const bool bmcwebInsecureEnableHttpPushStyleEventing = @BMCWEB_INSECURE_ENABLE_HTTP_PUSH_STYLE_EVENTING@ == 1; + +constexpr const char* bmcwebLoggingLevel = "@BMCWEB_LOGGING_LEVEL@"; // clang-format on diff --git a/config/meson.build b/config/meson.build index f42656b296..b13a023418 100644 --- a/config/meson.build +++ b/config/meson.build @@ -13,6 +13,14 @@ conf_data.set10('BMCWEB_INSECURE_ENABLE_HTTP_PUSH_STYLE_EVENTING', insecure_push conf_data.set('MESON_INSTALL_PREFIX', get_option('prefix')) conf_data.set('HTTPS_PORT', get_option('https_port')) +# Logging level +loglvlopt = get_option('bmcweb-logging') +if get_option('buildtype').startswith('debug') and loglvlopt == 'disabled' + # Override logging level as 'debug' if 'bmcweb-logging' is set as 'dsiabled' + loglvlopt = 'debug' +endif +conf_data.set('BMCWEB_LOGGING_LEVEL', loglvlopt) + conf_h_dep = declare_dependency( include_directories: include_directories('.'), sources: configure_file( @@ -41,4 +49,5 @@ configure_file(input : 'pam-webserver', output : 'webserver', copy : true, install_dir: '/etc/pam.d', - install : true)
\ No newline at end of file + install : true) + |