when the logging level of a subsys changes, update seastar accordingly
before this change, seastar logging levels of different logger are not
connected to ceph's logging levels of different subsystem.
after this change, they are connected. whenever a subsys's logging level
changes, the corresponding seastar logger is updated as well.
Signed-off-by: Kefu Chai <kchai@redhat.com>
#include "config_values.h"
#include "config.h"
+#if WITH_SEASTAR
+#include "crimson/common/log.h"
+#endif
ConfigValues::set_value_result_t
ConfigValues::set_value(const std::string_view key,
}
subsys.set_log_level(which, log);
subsys.set_gather_level(which, gather);
+#if WITH_SEASTAR
+ ceph::get_logger(which).set_level(ceph::to_log_level(log));
+#endif
}
}