golang-evdev
golang-evdev copied to clipboard
Log errors instead of failing in some cases
In some cases, a ioctl error should not block the full function since it is an normal behavior (for example, something not supported by the device).
Libraries in packages such as this one should never log themselves, as that clashes with the logging in place of the application using them. If you want to augment the error to give more context (which totally makes sense), use fmt.Errorf() or wrap the error as described here