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

Commit 2fb059f9 authored by howardchung's avatar howardchung Committed by Yun-hao Chung
Browse files

Floss: enabling logger earlier

Move the logger initialization earlier to be able to catch more logs in
the initialization step.

Bug: 275274516
Test: manually to check "Load settings from
/var/lib/bluetooth/admin_policy.json" from is dumped.

Change-Id: I716359cf77ec4e0ba0177acf081e8d87f476c884
parent 663adf8d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -126,6 +126,7 @@ fn main() -> Result<(), Box<dyn Error>> {

    // Forward --hci to Fluoride.
    init_flags.push(format!("--hci={}", hci_index));
    let logging = Arc::new(Mutex::new(Box::new(BluetoothLogging::new(is_debug, log_output))));

    let (tx, rx) = Stack::create_channel();
    let sig_notifier = Arc::new((Mutex::new(false), Condvar::new()));
@@ -168,7 +169,6 @@ fn main() -> Result<(), Box<dyn Error>> {
        bluetooth_media.clone(),
        tx.clone(),
    ))));
    let logging = Arc::new(Mutex::new(Box::new(BluetoothLogging::new(is_debug, log_output))));
    let bt_sock_mgr = Arc::new(Mutex::new(Box::new(BluetoothSocketManager::new(tx.clone()))));

    topstack::get_runtime().block_on(async {