I want to enable debug messages on bluez

Sagar Sm picture Sagar Sm · May 3, 2016 · Viewed 9.9k times · Source

I am actually trying to figure out where the DBG("") prints are going when I do a music stream using bluez to my headset. So basically I want to know where all the bluez debug messages are getting printed, be it any kind of bluetooth operation. ex: scan, inquiry , connect and so on .

Hopefully someone can help me with this . Thanks in advance .

Answer

datafridge picture datafridge · Jul 19, 2016

I have no Ubuntu here at the moment, but this is the way it works on Fedora and I'm sure it is very similar on Ubuntu, especially the systemd-part:

enable debugging by adding a -d after

ExecStart=/usr/libexec/bluetooth/bluetoothd

in /usr/lib/systemd/system/bluetooth.service

Save, then:

$ systemctl daemon-reload
$ systemctl restart bluetooth

Now you get your information in /var/log/syslog