summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.cc19
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);
}