paypal / gatt

Gatt is a Go package for building Bluetooth Low Energy peripherals
BSD 3-Clause "New" or "Revised" License
1.12k stars 283 forks source link

Logged state and error should be handled by user instead #86

Open alexozer opened 7 years ago

alexozer commented 7 years ago

Currently, errors and important state changes are logged with log.Printf() and friends and this can't be disabled. I think it would make more sense to pass state changes like this to users over a channel or callback function instead, or at least provide a way to disable the logging.