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

Commit e059e550 authored by Hsin-chen Chuang's avatar Hsin-chen Chuang
Browse files

floss: btmanagerd: Increase log level for important settings

Bug: 308362469
Tag: #floss
Test: mmm packages/modules/Bluetooth
Test: restart ui and verify the log
Change-Id: I9f0a18b80b8130c3440d01ff0e94bf04608f8a9c
parent 58da7062
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
use log::{error, info, warn};
use log::{error, warn};

use std::collections::HashMap;
use std::process::Command;
@@ -147,6 +147,7 @@ impl IBluetoothManager for BluetoothManager {
    }

    fn set_floss_enabled(&mut self, enabled: bool) {
        warn!("Set Floss Enabeld={}", enabled);
        let prev = self.proxy.set_floss_enabled(enabled);
        config_util::write_floss_enabled(enabled);

@@ -209,6 +210,7 @@ impl IBluetoothManager for BluetoothManager {
/// Implementation of IBluetoothExperimental
impl IBluetoothExperimental for BluetoothManager {
    fn set_ll_privacy(&mut self, enabled: bool) -> bool {
        warn!("Set Floss LL Privacy={}", enabled);
        let current_status = match config_util::read_floss_ll_privacy_enabled() {
            Ok(true) => true,
            _ => false,
@@ -218,7 +220,6 @@ impl IBluetoothExperimental for BluetoothManager {
            return true;
        }

        info!("Set floss ll privacy to {}", enabled);
        if let Err(e) = config_util::write_floss_ll_privacy_enabled(enabled) {
            error!("Failed to write ll privacy status: {}", e);
            return false;
@@ -230,7 +231,7 @@ impl IBluetoothExperimental for BluetoothManager {
    }

    fn set_devcoredump(&mut self, enabled: bool) -> bool {
        info!("Set floss devcoredump to {}", enabled);
        warn!("Set Floss DevCoreDump={}", enabled);
        config_util::write_coredump_state_to_file(enabled)
    }
}