Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit abb6c474 authored by Yun-Hao Chung's avatar Yun-Hao Chung
Browse files

Floss: Temporary skip setting log level for tags

Some modules, ex. message_loop_thread, have additional cleanup in their
destructor, if the destructor tries to log something but the
|tag_level_map| has been freed, the crash happens.

Temprorary skipping the setting to avoid the crash until we finalize the
solution.

Bug: 371889111
Tag: #floss
Test: mmm packages/modules/Bluetooth
Test: toggle on/off adapter and verify no crash
Flag: EXEMPT, Floss-only changes
Change-Id: I30a40af90934802864c270752f4baa957d1f02be
parent 43bb005e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -98,6 +98,9 @@ impl BluetoothLogging {

    fn apply_libbluetooth_log_level(&self) {
        set_default_log_level(self.log_level);

        // TODO(b/371889111): Don't set log level for tag until b/371889111 is fixed.
        /*
        // Levels for verbose-only tags.
        let level = match self.log_level {
            Level::Verbose => Level::Verbose,
@@ -107,6 +110,7 @@ impl BluetoothLogging {
            log::info!("Setting log level for tag {} to {:?}", tag, level);
            set_log_level_for_tag(tag, level);
        }
         */
    }
}