iotile / iotile/coretools

[iotile-transport-bled112] Getting unnecessary errors if logging is on

Open
#312 0 comments 0 reactions 0 assignees View on GitHub
transport-bled112 type:bug
Dominant language
Python
Stars
14
Forks
7
PR merge metrics
No merged PRs in 30d

Description

If my script uses `logging`, I always get:

```
[22/Jan/2018 17:26:33] ERROR Error stopping scan for devices, error=129
[22/Jan/2018 17:26:33] CRITICAL BLED112 adapter supports 3 connections
```

To test, run:

```
import logging
from iotile.core.hw.hwmanager import HardwareManager

logger = logging.getLogger(__name__)

if __name__ == '__main__':
# Logger Format
logging.basicConfig(level=logging.INFO,
format='[%(asctime)-15s] %(levelname)-6s %(message)s',
datefmt='%d/%b/%Y %H:%M:%S')

with HardwareManager(port='bled112') as hw:
pass
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.