我想在bluez上启用调试消息

问题描述:

我实际上是想弄清楚使用bluez对耳机进行音乐流传输时DBG(")打印的位置.因此,基本上,我想知道所有bluez调试消息的打印位置,无论是哪种蓝牙操作.例如:扫描,查询,连接等.

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 .

目前我在这里还没有Ubuntu,但这是它在Fedora上的工作方式,我确信它在Ubuntu上非常相似,尤其是systemd.-部分:

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:

之后添加 -d

启用调试

enable debugging by adding a -d after

ExecStart=/usr/libexec/bluetooth/bluetoothd

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

保存,然后:

$ systemctl daemon-reload
$ systemctl restart bluetooth

现在您可以在/var/log/syslog