我想在bluez上启用调试消息 [英] I want to enable debug messages on bluez

查看:85
本文介绍了我想在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

这篇关于我想在bluez上启用调试消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆