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

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

通过在

ExecStart=/usr/libexec/bluetooth/bluetoothd

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

保存,然后:

$ systemctl daemon-reload
$ systemctl restart bluetooth

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

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

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