Estimote / Android-Fleet-Management-SDK

Estimote Fleet Management SDK for Android
https://developer.estimote.com
MIT License
836 stars 451 forks source link

How to mute BluetoothAdapter logs? #35

Closed mohitb117 closed 8 years ago

mohitb117 commented 10 years ago

Is there any way to silence the debug Logs of the scans Bluetooth Adapter ,

I dont want to see the Scan Results while Generating Logs!

03-24 20:18:31.024 17852-18223/net.fluidstream.radiovicenza D/BluetoothAdapter﹕ onScanResult() - Device=F9:57:DA:5A:67:09 RSSI=-66

03-24 20:18:31.594 17852-17990/net.fluidstream.radiovicenza D/BluetoothAdapter﹕ stopLeScan()

03-24 20:18:31.634 17852-17990/net.fluidstream.radiovicenza D/BluetoothAdapter﹕ startLeScan(): null

03-24 20:18:31.634 17852-17864/net.fluidstream.radiovicenza D/BluetoothAdapter﹕ onClientRegistered() - status=0 clientIf=5

I don't want more logging noise... I am doing my own logging and this is just interference!

I know i can filter the BluetoothAdapter ones out... but i dont want to unless there already exist a switch in the SDK or are they a part of the Bluetooth Stack??

wiktor commented 10 years ago

This is part of Bluetooth Stack. I tried using adb setprop log.tag.BluetoothAdapter WARN without any success.

I'll leave it open until a viable solution will be found.

android85 commented 10 years ago

Hi, I am facing issue to integrate this library. it is showing " 04-15 15:12:27.850: V/EstimoteSDK(16387): com.estimote.sdk.service.BeaconService$InternalLeScanCallback.onLeScan:493 Device 77:B7:2C:66:6D:DA is not an Estimote beacon". Could you please help me how to resolve this issue. thanks

wiktor commented 10 years ago

@android85 It looks like you are not using Estimote beacon. Is that correct?

android85 commented 10 years ago

Yes, I am using virtual beacon broadcasting from iPhone device and getting log result on android device. How do i resolve this issue. Please suggest.

wiktor commented 10 years ago

Which version of SDK are you using? This bug is already fixed.

android85 commented 10 years ago

I am using latest Estimote/Android-SDK ( Version 0.4.1 of the SDK, bug fixes and enhancements) from github.

wiktor commented 10 years ago

Can you run examples from SDK?

On Tue, Apr 15, 2014 at 12:08 PM, android85 notifications@github.comwrote:

I am using latest Estimote/Android-SDK ( Version 0.4.1 of the SDK, bug fixes and enhancements) from github.

— Reply to this email directly or view it on GitHubhttps://github.com/Estimote/Android-SDK/issues/35#issuecomment-40465180 .

android85 commented 10 years ago

Yes I am running AllDemosActivity demo app from SDK.

wiktor commented 10 years ago

So you don't see virtual beacon in the list?

On Tue, Apr 15, 2014 at 12:11 PM, android85 notifications@github.comwrote:

Yes I am running AllDemosActivity demo app from SDK.

— Reply to this email directly or view it on GitHubhttps://github.com/Estimote/Android-SDK/issues/35#issuecomment-40465397 .

android85 commented 10 years ago

No it is showing Found beacon = 0 on action bar of demo app and display log from eclipse logcat. have u any link of latest sdk with bug already fixed.

wiktor commented 10 years ago

I've retested with iOS Estimote app (version 2.2 build 2.70) from App Store with current demos from Android SDK.

Please spawn other bug since your comments are out of scope of this issue.

android85 commented 10 years ago

@wiktor I have tested demo app with iOS Estimote app. I have found estimote beacons. Thanks for your support. Could you please confirm one thing, This Android SDK will work for generic beacons?

wiktor commented 10 years ago

No, it will work only with Estimote beacons.

On Thu, Apr 17, 2014 at 6:19 AM, android85 notifications@github.com wrote:

@wiktor I have tested demo app with iOS Estimote app. I have found estimote beacons. Thanks for your support. Could you please confirm one thing, This Android SDK will work for generic beacons?

Reply to this email directly or view it on GitHub: https://github.com/Estimote/Android-SDK/issues/35#issuecomment-40679474

stephan-henningsen commented 9 years ago

Bump =) I'm getting tired of these log entries too.

elenzil commented 9 years ago

is there a possibility these log lines have a performance impact ? I'm seeing about 24 per second for onScanResult.

stevensanborn commented 9 years ago

I have been using: ^(?!BluetoothAdapter)(?!BluetoothLeScanner) in the regex filter for tag

Unfortunately the S6 prints a different string.... so the regex wont work for all devices

sakkeerhussain commented 9 years ago

It can be archived by adding ^(?!.(BluetoothAdapter)).$ this value to 'by Log Tag' field of Log cat filter message settings I know this not the exact solution but it worked for me !

stephan-henningsen commented 9 years ago

Yeah, I just discovered this the day before @stevensanborn posted!

In Eclipse LogCat I made a new Filter:

Filter Name: MyApp excluding BT by Log Tag: ^(?!.(BluetoothAdapter|BluetoothLeScanner)).$ by Application Name: com.example.myapp

But still it would be preferable to have Google make their system services stfu.

ghost commented 8 years ago

I've filed a bug in Android for this issue. It appears as though a debug flag was left true in production. Please star the issue in the Android bug tracker (don't comment unless you have something constructive to add, the star is your vote).

https://code.google.com/p/android/issues/detail?id=203965&thanks=203965&ts=1458051356

pawelDylag commented 8 years ago

Clearing old stuff