nfc-tools / nfc-eventd

NFC monitor daemon which is able to launch modules (libraries) on action (tag inserted or removed)
http://nfc-tools.org
GNU General Public License v3.0
32 stars 8 forks source link

"error libnfc.driver.acr122_usb Invalid RDR_to_PC_DataBlock frame" spam #4

Open Enverex opened 7 years ago

Enverex commented 7 years ago

The program itself seems to work fine, but it's constantly outputting the following text making logging useless. It seems to happen every 5 seconds if a NFC tag isn't present on the reader:

Aug 30 10:47:38 arcade nfc-eventd[4160]: error        libnfc.driver.acr122_usb        Invalid RDR_to_PC_DataBlock frame
Aug 30 10:47:43 arcade nfc-eventd[4160]: error        libnfc.driver.acr122_usb        Invalid RDR_to_PC_DataBlock frame
Aug 30 10:47:48 arcade nfc-eventd[4160]: error        libnfc.driver.acr122_usb        Invalid RDR_to_PC_DataBlock frame
Aug 30 10:47:53 arcade nfc-eventd[4160]: error        libnfc.driver.acr122_usb        Invalid RDR_to_PC_DataBlock frame
Aug 30 10:47:58 arcade nfc-eventd[4160]: error        libnfc.driver.acr122_usb        Invalid RDR_to_PC_DataBlock frame
Aug 30 10:48:03 arcade nfc-eventd[4160]: error        libnfc.driver.acr122_usb        Invalid RDR_to_PC_DataBlock frame
Aug 30 10:48:09 arcade nfc-eventd[4160]: error        libnfc.driver.acr122_usb        Invalid RDR_to_PC_DataBlock frame
Aug 30 10:48:14 arcade nfc-eventd[4160]: error        libnfc.driver.acr122_usb        Invalid RDR_to_PC_DataBlock frame
Aug 30 10:48:19 arcade nfc-eventd[4160]: error        libnfc.driver.acr122_usb        Invalid RDR_to_PC_DataBlock frame

If it's not possible to fix this, is it at least possible to have nfc-eventd ignore the message from libnfc so that it doesn't fill the log?

Enverex commented 7 years ago

It looks like disabling all errors in libnfc itself mutes this, but would it be possible to have nfc-eventd catch these into it's own debug logging rather than having to disable it in libnfc globally on the system?

work40 commented 6 years ago

Use patch for libnfc from here https://gist.github.com/danieloneill/3be43d5374c80d89ea73 to solve this problem.