diff options
| author | Joel Klinghed <the_jk@spawned.biz> | 2025-10-20 19:49:03 +0200 |
|---|---|---|
| committer | Joel Klinghed <the_jk@spawned.biz> | 2025-10-20 19:49:27 +0200 |
| commit | 32beeaf25a6eb005d9ed6bcb88514458f9aec271 (patch) | |
| tree | eedb12a54b650cc29c50e14d6e4c9acb119c89b9 /src | |
| parent | 918eaadde6a11dae611d314777a664f57a0f8e1c (diff) | |
main: Reduce logging from agent methods
info -> dbg
Not that interresting info.
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.cc | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/main.cc b/src/main.cc index f04e545..5a6f86e 100644 --- a/src/main.cc +++ b/src/main.cc @@ -243,46 +243,45 @@ class BluetoothManagerDelegate : public bt::Manager::Delegate, public Api { void agent_request_pincode( bt::Device& device, std::function<void(std::optional<std::string>)> callback) override { - logger_.info(std::format("Device request pincode: {}", device.name())); + logger_.dbg(std::format("Device request pincode: {}", device.name())); callback(std::nullopt); } void agent_display_pincode(bt::Device& device, std::string const& pincode) override { - logger_.info(std::format("Device pincode: {} {}", device.name(), pincode)); + logger_.dbg(std::format("Device pincode: {} {}", device.name(), pincode)); } void agent_request_passkey( bt::Device& device, std::function<void(std::optional<uint32_t>)> callback) override { - logger_.info(std::format("Device request passkey: {}", device.name())); + logger_.dbg(std::format("Device request passkey: {}", device.name())); callback(std::nullopt); } void agent_display_passkey(bt::Device& device, uint32_t passkey, uint16_t /* entered */) override { - logger_.info(std::format("Device passkey: {} {}", device.name(), passkey)); + logger_.dbg(std::format("Device passkey: {} {}", device.name(), passkey)); } void agent_request_confirmation(bt::Device& device, uint32_t passkey, std::function<void(bool)> callback) override { - logger_.info(std::format("Device request confirmation: {} {}", - device.name(), passkey)); + logger_.dbg(std::format("Device request confirmation: {} {}", device.name(), + passkey)); // Confirm all callback(true); } void agent_request_authorization( bt::Device& device, std::function<void(bool)> callback) override { - logger_.info( - std::format("Device request authorization: {}", device.name())); + logger_.dbg(std::format("Device request authorization: {}", device.name())); callback(false); } void agent_authorize_service(bt::Device& device, std::string const& uuid, std::function<void(bool)> callback) override { - logger_.info(std::format("Device request authorize service: {} {}", - device.name(), uuid)); + logger_.dbg(std::format("Device request authorize service: {} {}", + device.name(), uuid)); callback(false); } |
